最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - C# code to check Java script disabled in browser - Stack Overflow

matteradmin4PV0评论

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

Post a comment

comment list (0)

  1. No comments so far