How to detect if JavaScript is disabled?

后端 未结 30 3448
暗喜
暗喜 2020-11-21 07:37

There was a post this morning asking about how many people disable JavaScript. Then I began to wonder what techniques might be used to determine if the user has it disabled.

30条回答
  •  别那么骄傲
    2020-11-21 08:03

    Adding a refresh in meta inside noscript is not a good idea.

    1. Because noscript tag is not XHTML compliant

    2. The attribute value "Refresh" is nonstandard, and should not be used. "Refresh" takes the control of a page away from the user. Using "Refresh" will cause a failure in W3C's Web Content Accessibility Guidelines --- Reference http://www.w3schools.com/TAGS/att_meta_http_equiv.asp.

提交回复
热议问题