I want to load a specific - additional - style sheet when scripting is disabled in the browser.
Is there a nice / clean way to test for that or should I just use a script tag and a document.write() to add the style sheet?
I want to load a specific - additional - style sheet when scripting is disabled in the browser.
Is there a nice / clean way to test for that or should I just use a script tag and a document.write() to add the style sheet?
Why you wont use <NOSCRIPT> tag?
It can be used in HEAD section, because it is used in any place, where SCRIPT can be used as an alternative.
I'd work the other way. Override the styles if scripting IS available. i.e. build on top of a page that works without JS rather than trying to test if JS isn't available.
I'd probably roll them into a single stylesheet and then throw a:
<script type="text/javascript">
document.body.className += " js";
</script>
into the page.