Noscript to redirect (I need to redirect)

KriiV picture KriiV · Sep 15, 2013 · Viewed 12.8k times · Source

I want to disallow access to my website when the user does not have Javascript. I do not with to simply display a message. How would I go about doing this? None of the other questions are quite the same in the sense of disallowing access.

Something like this:

<noscript>
Redirect to another page.
</noscript>

But I've seen that this is not good to do? I repeat though, I do not simply want to display a message.

Thanks.

Answer

Rahul Tripathi picture Rahul Tripathi · Sep 15, 2013

You may try this:-

<noscript>
<a href="">Click here to continue</a>
</noscript>

or

<noscript>
  <meta http-equiv="refresh" content="0;url=noscript.html">
</noscript>