Check whether Javascript is enabled

后端 未结 9 2207
礼貌的吻别
礼貌的吻别 2020-12-29 13:47

Is there a way to check whether Javascript is enabled or supported by the browser? If it\'s not supported, I would like to redirect the user to a user-friendly error page. <

9条回答
  •  佛祖请我去吃肉
    2020-12-29 14:00

    As the default, send out the version without javascript. There you include a little piece of javascript that redirects to the dynamic version. This will only get executed when js is enabled.

提交回复
热议问题