
Feature request: add no-js (class)?
Reported by dleffler | February 20th, 2014 @ 02:22 AM
There is a technique to allow for browsers without javascript support (turned on). This is handled by the Modernizr script (which we only load with forms), or could be handled in a similar fashion. This would add a 'no-js' class to the 'html' tag which would be replaced by the class 'js' if javascript is working. This allows adding style classes to hide sections of the page if javascript is not supported, etc...
Comments and changes to this ticket
-
dleffler February 20th, 2014 @ 02:25 AM
The simple code is:
<script> document.documentElement.className = document.documentElement.className.replace("no-js","js"); </script>
-
-
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Bug Tracker for Exponent CMS