DelphiFAQ Home Search:
General :: Programming :: JavaScript
Code snippets to add functionality to your HTML pages, preferably cross-browser.


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

Detect that Javascript is disabled and reload the page then


How can I detect that Javascript is disabled and then have the page reload or redirect?


You cannot detect this in JavaScript itself but you can use the <NOSCRIPT> section in the <HEAD> section of your page:

In the example it will redirect after 2 seconds to another URL (no_script_version.htm).

Most browsers support the REFRESH option.
 <META HTTP-EQUIV="Refresh" CONTENT="2;URL=no_script_version.htm">

Generated 12:01:26 on Apr 4, 2020