Check whether Javascript is enabled

后端 未结 9 2210
礼貌的吻别
礼貌的吻别 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:13

    Bring the user to the error page by default, and have a javascript redirect execute in the section of the page. Have the redirect push the user to the real page.

    If they don't have javascript enabled, they won't get redirected and the rest of the page (error page) will load.

提交回复
热议问题