This Post Will Help You In Detecting Whether Javascript Is Enabled On A Users Computer When They Visit Your Website [2207], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Mon Jan 11, 2010
0 Comments
439 Visits
thank you for visiting Webune Support Forums
Webune Offers Excellent Web Hosting Service.
as you can see, we were able to detect whether or not you have javascript enabled on your computer. to see the the message telling you that you have javascript disabled, go ahead and disable your javascript on your broswer and refresh this page. You will see it works!!
so you're probably wondering how were we able to check if you had javascript enabled on your web browser. we used the following code
JAVASCRIPT CODE:
<script language="javascript">alert('Congratulations! - You have Javascript Enabled.'); </script><noscript><h1 style="color:red">You Do Not Have Javascript Enabled!</h1></noscript>
you can use this code to find out if a user has javascript enabled and provide a message.
NOTE: this script was tested on Firefox Version 3 and Internet Explorer Version 8