Javascript检测脚本
我需要一个JS检测脚本,可以将没有启用JS的用户重定向到没有JS的其他页面。有点矛盾,不是吗?答案不能是脚本,因为如果不启用JS,将不会执行任何脚本Javascript检测脚本,javascript,Javascript,我需要一个JS检测脚本,可以将没有启用JS的用户重定向到没有JS的其他页面。有点矛盾,不是吗?答案不能是脚本,因为如果不启用JS,将不会执行任何脚本 <noscript><meta http-equiv="refresh" content="0;url=http://example.com/no_js.html/"></noscript> 您可以将HTML嵌入noscript标记中,并且只有在未启用JS的情况下才会包含此内容 <noscript>
<noscript><meta http-equiv="refresh" content="0;url=http://example.com/no_js.html/"></noscript>
您可以将HTML嵌入noscript标记中,并且只有在未启用JS的情况下才会包含此内容
<noscript><meta http-equiv="refresh" content="0;url=http://example.com/no_js.html/"></noscript>
有点自相矛盾,不是吗?答案不能是脚本,因为如果不启用JS,将不会执行任何脚本
<noscript><meta http-equiv="refresh" content="0;url=http://example.com/no_js.html/"></noscript>
您可以将HTML嵌入noscript标记中,并且只有在未启用JS的情况下才会包含此内容
<noscript><meta http-equiv="refresh" content="0;url=http://example.com/no_js.html/"></noscript>
+1为笑出来的悖论。(问得好。)我知道这是一个悖论:D noscript方法有效。+1表示大笑悖论。(这是个好问题。)我知道这是一个悖论:noscript方法起作用了。