Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Noscript to redirect (I need to redirect) [duplicate]

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.

like image 452
KriiV Avatar asked Sep 15 '13 08:09

KriiV


3 Answers

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>
like image 102
Rahul Tripathi Avatar answered Oct 10 '22 01:10

Rahul Tripathi


Here is an solution from another post. <meta http-equiv="refresh" content="0; url=http://example.com/">

like image 35
Shane A. Darr Avatar answered Oct 10 '22 01:10

Shane A. Darr


  1. Have your landing page be your NON-JavaScript warning page.
  2. Include a peice of JavaScript called from onload to re-direct to your REAL page (where you assume the end-user has JavaScript).
like image 44
David-SkyMesh Avatar answered Oct 10 '22 02:10

David-SkyMesh