[thelist] <noscript> in <head>
Erik Mattheis
gozz at gozz.com
Wed May 1 20:25:00 CDT 2002
At 8:19 PM -0400 5/1/02, Mike Combs wrote:
>I'd like to assign a default stylesheet to be loaded for
>users without Javascript enabled.
>
>The JavaScript does a "document.write" to load the stylesheet based on the
>cookie. For non-JavaScript users, I put a stylesheet into a <noscript>
>tag. But this doesn't validate under XHTML... <noscript> is only allowed
>in the body.
>
>Can anyone figure a "valid" workaround?
Just put the link to the default stylesheet above the area in which
you document.write() the others - the one lower on the page will
overwrite the one higher on the page.
--
__________________________________________
- Erik Mattheis
(612) 377 2272
http://goZz.com/
Through June 15
9am - 3pm M-F:
(952) 838 7698
__________________________________________
More information about the thelist
mailing list