<noscript>element for an unexplained reason.
- I'd like to add my .02 here. It's not 100% bulletproof, but we think it's good enough.
- So, what we really want is a "redirection" to a page that says "turn on JS, silly". But, of course, we can't reliably do meta redirections. So, here's the suggestion:
...where all of the content in our site is wrapped with a div of class "pagecontainer". The CSS inside the noscript tag will then hide all of our page content, and instead display whatever "no JS" message we want to show. This is actually what Gmail appears to do...and if it's good enough for Google, it's good enough for my little site.
This will change the value of js_enabled to 1 before submitting the form. If our server-side script gets a 0, no JS. If it gets a 1, JS!
- We can use a simple JS snippet to set the value of a hidden field. When posted back we know if JS was enabled or not.
- Or we can try to open a popup window that we close rapidly (but that might be visible).
- Also we have the NOSCRIPT tag that we can use to show text for browsers with JS disabled.