Reputation: 569
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 so that the user cannot login until he enables javascript. can anyone help me in this code
Upvotes: 1
Views: 1373
Reputation:
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.
Upvotes: 8