ballhogjoni Posted January 23, 2008 Share Posted January 23, 2008 I would like to know if you can enable/disable javascript in the browser via a client-side/server-side script, or atleast let the visitor know javascript is enabled/disabled. Quote Link to comment Share on other sites More sharing options...
taith Posted January 23, 2008 Share Posted January 23, 2008 if javascript is disabled, you cant use javascript to enable it... so... no... however... thats what the <noscript> tag was made for... you can be a punk... like so... <noscript> YOU MUST ENABLE JAVASCRIPT!!! ROAR! <div style="display:none;"> </noscript> all your body in here </div> then... if its off... they cant see your site :-) Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted January 23, 2008 Share Posted January 23, 2008 you cannot enable or disable javascript client side or server side; each end user has to enable/disable javascript threw their browser options. the script below will let you know if javascript is enabled or disabled. <script language="javascript"> document.write("<p>JavaScript Is Enabled On Your Browser</p>"); </script> <noscript> <p>JavaScript Is <u>Not</u> Enabled On Your Browser</p> </noscript> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.