Click here to Skip to main content
15,911,848 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have used javascript code. I am using ASP .NET C#. But the problem is that some of the user browser does not get result of the javascript code. I create a method and use it onblur event of a textbox. Please help me.
Posted
Comments
Kornfeld Eliyahu Peter 1-Jun-14 8:03am    
Enabling JavaScript is impossible from code - that belongs to the end user (think of it! If one with malicious thoughts wants to spread harmful JavaScript!).
If JavaScript disabled on the browser you have to look for JavaScript-free solution, however if you have a browser compatibility problem you have to ask the right question...

1 solution

You can not do it, since it is a security switch that only the user can turn.
But you can make your user notice he MUST have scripts on if he want to have full experience at your website.

just declare a noscript tag:

XML
<script>
document.write("Hello World!")
</script>
<noscript>Your browser does not support JavaScript!</noscript>


for more information, access this url:
http://www.w3schools.com/tags/tag_noscript.asp[^]

hope it helps :)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Jun-14 13:47pm    
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