How to redirect if JavaScript and <meta redirect>
are both disabled? Is there any way to redirect a page if both are disabled?
I found the useful questions How to redirect if javaScript is disabled? and redirect to another page if javascript is disabled which are redirecting using <meta redirect>
, but if I disable meta redirect from e.g. the Firefox Web Developer extension then it will not redirect. Below is the image which shows how to disable JavaScript and meta redirects.
One more solution we have is that we can hide the html
or body
elements but anyone can use Firebug or other tool to make it visible, and which is not a trick now.
Do we have any option to work with <noscript>
in this case or any server-side script (like PHP) to make it work?
Create a hidden field.
Then on page load, add the following script.
on button press check if the value exists.