Click here to Skip to main content
15,877,857 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
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?
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.[^]
Share this answer
RaisKazi 5-May-14 16:10pm    
Sergey Alexandrovich Kryukov 5-May-14 16:24pm    

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