How to detect if JavaScript is disabled?

后端 未结 30 3429
暗喜
暗喜 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 07:57

    I'd suggest you go the other way around by writing unobtrusive JavaScript.

    Make the features of your project work for users with JavaScript disabled, and when you're done, implement your JavaScript UI-enhancements.

    https://en.wikipedia.org/wiki/Unobtrusive_JavaScript

提交回复
热议问题