Wed 15 Feb 2006
Have you ever wondered what you can do if someone doesn't have javascript turned on and it is needed on the page they are sitting at? Well here is the answer:
<html>
<head>
<noscript><meta http-equiv="refresh" content="0; URL=nojscript.html"/></noscript>
</head>
<body>
A javascript test.
</body>
</html>
<head>
<noscript><meta http-equiv="refresh" content="0; URL=nojscript.html"/></noscript>
</head>
<body>
A javascript test.
</body>
</html>
If the user doesn't have javascript turned on they will be redirected to the page nojscript.html. It doesn't work as well as having a page in between that does the detection but if you have to do it on the page you need the javascript on this is the way to go.
Tags: javascript


















July 18th, 2006 at 10:34 pm
a u sure can this work?i tired firefox and opera and links.close the javascript,but the refresh never happen.do u tried this code?
July 18th, 2006 at 10:56 pm
You are correct. Between what I tested and what got pasted into the box the U in URL was lost. It should work now.