| Programming C# C++ (7) Delphi (617) Java (8) JavaScript (31) Document (8) Events (8) ExtJS (9) Strings (3) perl (9) php (4) VBScript (1) Visual Basic (1) New related comments Number of comments in the last 48 hours How to prompt the user with an inputbox in Javascript |
Detect that Javascript is disabled and reload the page then
Question: How can I detect that Javascript is disabled and then have the page reload or redirect?Answer: 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.
Comments:
| |||||||||||||||||||||||