Javascript检测脚本

Chr*_*her 1 javascript

我需要一个JS检测脚本,它将没有JS的用户重定向到没有JS的不同页面.

JAL*_*JAL 11

有点悖论,不是吗?答案不能是脚本,因为如果没有启用JS,则不会执行任何脚本.

您可以将HTML嵌入到noscript标记中,只有在未启用JS时才会包含此内容.

<noscript><meta http-equiv="refresh" content="0;url=http://example.com/no_js.html/"></noscript>
Run Code Online (Sandbox Code Playgroud)