Is JavaScript Enabled?
A Sothink DHTMLMenu user asked how to detect if a browser has JavaScript
disabled and show content such as, "The menu is not
shown because
you have JavaScript disabled. Click here for
a Site Map." Following Pitt's Rule #278:
Overlook the obvious and make things as complicated as possible.
I suggested using a PHP script to determine if JavaScript is disabled and display the alternate content. An elegant, but stupid, solution.
Rick, a DHTMLMenu user, asked, "What about the <Noscript> </Noscript> tag?", and Rick makes an excellent point. The tag <noscript> ... </noscript> is used to display alternative content for browsers that do not recognize the script tag, or for those occasions where the user has purposely disabled script.
I can't blame this on a "senior moment" because I stopped using the <noscript> tag years ago and forgot all about it.
