How to Check if JavaScript is Enabled?
-
Is there a way in WordPress to check if JavaScript is enabled?
I’d like to use a different CSS file for the navigation (which currently works with jQuery) if JavaScript is disabled, so I can degrade the navigation bar gracefully to a CSS hover navigation bar, by simply changing the CSS file that is used.
Example:
if (javascript == on) { jquery_navi.css } else { pure_css_navi.css }
- The topic ‘How to Check if JavaScript is Enabled?’ is closed to new replies.