No javascript detection

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>

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:

2 thoughts on “No javascript detection

  1. carson Post author

    You are correct. Between what I tested and what got pasted into the box the U in URL was lost. It should work now.

Leave a Reply

Your email address will not be published. Required fields are marked *