Christian Heilmann

Disabling Style Sheets via DOM

Thursday, April 14th, 2005 at 1:23 pm

After a rather abysmal start of a three part article on DOM and CSS, Alejandro Gervasio came up with an interesting way to switch style sheets via DOM. I took the liberty to make the code a bit less obtrusive and checking for real DOM support.
It is not a real style switcher, and personally I consider JS only switchers pointless, but it is an interesting idea.

Share on Mastodon (needs instance)

Share on Twitter

My other work: