Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
Hi
can any one tell me how to check java script is enable or not in our web browser and how to enable/disable using c# programmatically on page load method?
Posted
Comments
ZurdoDev 5-May-14 15:04pm    
You can't enable or disable it. That is a browser setting. Google has tons of examples of how to check if it is enabled. Where are you stuck?
Er.D.K.Malhotra 5-May-14 15:20pm    
Actually in MVC, there are lot of use of javascript/jquery.
so if somebody has disable javascript in his/her browser,then, may be, whole application wouldn't respond as aspected. thats why i need to check and if disable, i want to enable it. it is a very rare condition but the chances are always there.

so please if you or any one of your friends find any solution then please post it.
ZurdoDev 5-May-14 15:28pm    
Yes, you can check, as I mentioned search google, but you can't do it in C#. See solution.

1 solution

There are many examples online if you just google for detect if javascript is enabled. Below link has several options.

http://stackoverflow.com/questions/121203/how-to-detect-if-javascript-is-disabled[^]
 
Share this answer
 
Comments
RaisKazi 5-May-14 16:10pm    
5
Sergey Alexandrovich Kryukov 5-May-14 16:24pm    
5ed.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900