admin管理员组

文章数量:1025218

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

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

Share Improve this question edited May 9, 2013 at 14:40 marc_s 757k184 gold badges1.4k silver badges1.5k bronze badges asked Oct 27, 2010 at 9:00 Sumit GuptaSumit Gupta 5691 gold badge11 silver badges33 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

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

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

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

Share Improve this question edited May 9, 2013 at 14:40 marc_s 757k184 gold badges1.4k silver badges1.5k bronze badges asked Oct 27, 2010 at 9:00 Sumit GuptaSumit Gupta 5691 gold badge11 silver badges33 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

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

本文标签: javascriptC code to check Java script disabled in browserStack Overflow