this page shows you how you can check if javascript enabled in a browser or not by using a simple code [830], Last Updated: Sat May 18, 2024
wallpaperama
Fri Sep 09, 2011
1 Comments
505 Visits
hi, today i was writting a script in javascript and one of the requirements was to check if the user's browser has javascript enabled or not. for web programmers and developers its good to know how to check if a visitor's browser has javascript disabled. it helps because we make many web sites which are very dependent on javascript and if the user does not have javascript enabled, then the services become useless because the visitor does not have the full expirience the website has to offer.
so this is how you find out
its very simple, all you have to do is use the following code:
<p > <script type="text/javascript"> document.write('YES - Javascript is ENABLED on your browser'); </script> <noscript> NO - Javascript is DISABLED on your browser </noscript> </p>
as you can see, its very simple, see below i will give you a demo of this code:
to try it out, make sure you disable javascript on your browser.
https://www.wallpaperama.com/forums/_zyxewr.html