Demo of javaScript support and redirecting
Here is the code<html>
<head>
<title>Demo of Checking if JavaScript is enabled in web browser</title>
</head>
<body >
<noscript>
<meta http-equiv="refresh" content="2; URL=enable_javascript.php">
Are you using a browser that doesn't support JavaScript?<br><br>
If your browser does not support JavaScript, you can upgrade to a newer browser<br><br>
If you have disabled JavaScript, you must re-enable JavaScript to use this page. To enable JavaScript:
</noscript>
<br><br>
If you are not seeing any message above this line then you have JavaScript enabled in your browser.
</body>
</html>
In the above code check this line
<meta http-equiv="refresh" content="2; URL=enable_javascript.php">
This line redirects the browser to a different page after 2 seconds. You can change the time duration by changing 2 seconds to any other value.
Amirreza | 27-06-2014 |
Perfect method! Used on my webiste,It fully works without any errors! |
soma | 02-08-2016 |
meta tags can be disabled in some browsers. |
smo1234 | 02-10-2016 |
No, meta tags can't be disabled.. |