Re: [MACCAWS] mockup of amazon in xhtml

Tom Gilder <[email protected]> Wed, 11 Sep 2002 11:37:37 +0100
Newsgroups gmane.comp.web.vkit
Message-ID <[email protected]>
On Tuesday, September 10, 2002, 9:16:19 PM, you wrote:
> open a page in yer browser (this works in IE & Mozzy) and paste the
> following into the address bar
> 
> javascript:var
> i=0;if(document.styleSheets.length>0){cs=!document.styleSheets[0].disabled;f
> or(i=0;i<document.styleSheets.length;i++)
> document.styleSheets[i].disabled=cs;};void(cs=true);

In IE:
javascript:s=document.styleSheets;for(i=0;i<s.length;i++)s[i].disabled=1;a=document.all;for(i=0;i<a.length;i++)void(a[i].style.cssText='');
...will kill all style attributes too.

-- 
Tom Gilder
http://tom.me.uk/