Sumit Gupta
Sumit Gupta

Reputation: 569

C# code to check Java script disabled in browser

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

Answers (2)

roman m
roman m

Reputation: 26561

Take a look at this project

Upvotes: 2

user151323
user151323

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

Related Questions