Home > Javascript > Javascript Enabled Stylesheets

Javascript Enabled Stylesheets

Are your sites heavily dependant on javascript? Yeah, so are mine. Sometimes its just not worth the trouble for me to make my sites work for the 1-2% of the population who might have javascript turned off. Just about every browser has javascript support, so even if they do have it turned off, they can easily turn it on.

But in any case, if you really care about compliancy and accessibility and want to have more control over your page w/o javascript, then check out this link:

Javascript Enabled Stylesheets

It shows you how to include a certain stylesheet only if JS is enabled. This is handy in those cases where you have sections of your site hidden by default and use JS to show them.

Related posts:

  1. Javascript Syntax Highlighting (Editable too!)
Categories: Javascript Tags:
blog comments powered by Disqus