JavaScript FAQ
Answers to Questions about…
How do I …
with JavaScript/JScript… detect whether JavaScript support has been disabled?
Common sense says that if you’re going to detect if JavaScript is disabled, you’d better do it in something besides JavaScript! Check instead to see if scripting is enabled.
You might, for instance, use something like document.location = 'java_page.html'
to redirect the browser to a new, script-laden page. Failure to redirect implies that JavaScript is unavailable, in which case you can either resort to CGI ro utines or insert appropriate code between the <NOSCRIPT>
tags. (NOTE: NOSCRIPT
is only available in Netscape Navigator 3.0 and up.)
Related
Stay on top of the latest technology trends — delivered directly to your inbox, free!
Subscription Form Posts
Don't worry, we don't spam
Written by Bobby
Bobby Lawson is a seasoned technology writer with over a decade of experience in the industry.
He has written extensively on topics such as cybersecurity, cloud computing, and data analytics.
His articles have been featured in several prominent publications, and he is known for his ability to distill complex technical concepts into easily digestible content.