Chandy wrote:
Hi,
Is there any way to apply a style that will effectively block the
application of any applied or inherited styles for that object and any
contained objects?
[example snipped]
I have a toolbar button on my Mozilla browser (via the PrefBar
extension) that eliminates all CSS from the current Web page that
I'm viewing. This is very handy when I want to test one of my own
Web pages to see how it might look on a browser that does not have
CSS support. To restore CSS for the affected page, I merely reload
the page.
Behind that button is the following script:
javascript
:
for(i=0;i<document.styleSheets.length;i++)
{void(document.styleSheets.item(i).disabled=true); }
el=document.getElementsByTagName('*');
for(i=0;i<el.length;i++)
{void(el[i].style.cssText='');}
--
David E. Ross
<URL:http://www.rossde.com/>
I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.