我想向在Chrome上关闭Javascript的用户发送消息。然而它不起作用。
这段代码有什么问题
答案 0 :(得分:1)
你不能使用noscript标签。
答案 1 :(得分:1)
您需要使用<noscript>Your browser doesn't support javascript.</noscript>
答案 2 :(得分:1)
如果没有JavaScript,则无法显示提醒。 而是使用noscript标签,如:
<noscript><p class="alert">No JavaScript</p></noscript>
答案 3 :(得分:0)
使用noscript标签:
<noscript>
This site requires JavaScript. You see this because you have it disabled.
...
</noscript>
答案 4 :(得分:-1)
use <noscript> tag to check and redirect the user so that he can know javascript is disabled
<noscript>
<style type="text/css">
.pagecontainer {display:none;}
</style>
<div class="noscriptmessage">
You don't have javascript enabled.
</div>
</noscript>