开发者

C# code to check Java script disabled in browser

开发者 https://www.devze.com 2023-01-21 23:40 出处:网络
i am having a application in which java script is must. but i am facing problem when at any client browser has java script disabled. i want a code using which i can check the browsers java script enab

i am having a application in which java script is must. but i am facing problem when at any client browser has java script disabled. i want a code using which i can check the browsers java script enabled/ disabled property s开发者_如何学Pythono that the user cannot login until he enables javascript. can anyone help me in this code


You could simply have the "log in" button disabled by default and have it enabled by JavaScript when the document is loaded.

Also put a message saying the JavaScript is disabled on a page and make it visible by default. Upon document load, hide the message. Alternatively, use the <noscript> tag.


Take a look at this project

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号