Forum Moderators: not2easy
So there is no obvious way to wrap a <STYLE> tag within a <NOSCRIPT> tag.
A little research tells me that <NOSCRIPT> is defined in terms of rendering, hence the limitation of its use (within the <BODY> only) but this is just stupid.
Any suggestions?
Kaled.
There's a page showing how to change styles with JavaScript, but it's a messy business not likely to work in all browsers!
[quirksmode.org...]
According to this list [quirksmode.org] of DOM commands, for CSS manipulation it gives the following results:
IE5/6 Windows - Yes
Explorer 5.2 Mac - Read Only (so you can't change the stylesheet - sigh)
Mozilla 1.6 - Yes
Safari 1.2 - Read Only
Opera 7.50 - No
Anyone know of a cross-browser method?
Since there are only a few differences, between the two stylesheets I require for js and non-js this should be ok.
Whoever decided that the <NOSCRIPT> tag could not be placed within the <HEAD> should be put up against a wall and shot. So far as I can tell, IE, Opera and Mozilla all accept <NOSCRIPT> within the <HEAD> but I'm trying to move towards standards rather than away from them.
Kaled.