Know this is an old thread, but just thought it add my own solution. I have javascript controlled <div>
and on a browser where javascript is disabled, none of these are show so:
Have a standard <div>
in center of page saying “please enable javascript to view or click here for non javascript page”
Set the z-value
to -1
Have all javascript controlled <div>
and set with a white/whatever background
and a z-index
value to 0 or higher
The javascript controlled <div>
will cover the message if enabled, and show it if not.
Hope that this gives one or two of you a few ideas. Although this was specifically for my site, you may find that thinking out the box may help you too.