Thoughts from the team at Mission Data

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; RL=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.

4 Responses to “No javascript detection”

  1. October 16th, 2006 @ 3:47 pm alex responded:

    Awesome little trick. I know a lot of artist’s websites could definitely use this beauty. Smooth sliding, here we come! Finally, I have no more use for Flash.

  2. March 23rd, 2009 @ 1:19 pm pro developer responded:

    Hey thanks for this script. My site is totally based on javascript.. now i don’t need to worry.. i simply redirect them to other page. Thanks a lot

  3. August 1st, 2010 @ 6:16 pm Ric responded:

    Cool trick! Thank you very much :-)

  4. April 25th, 2011 @ 6:47 am annonce algerie responded:

    Thanks a lot. i was searchin for this trick month and month

blog comments powered by Disqus