> I can call the style() method...
Think you mean the Style object. You can read its properties, but it
won't help much if they've been set in a separate (outside the element
tag) stylesheet; pretty much returns empty strings. That's because it's
an actual DOM object, and if you don't set its properties directly, via
HTML's "style" attribute, or the object itself with JS, the values don't
"cascade" down the DOM hierarchy as the actual implementation of those
styles does. Here's one solution:
http://dhtmlkitchen.com/learn/js/setstyle/index4.jsp
Uses the DOM document.defaultView.getComputedStyle() method or IE's
proprietary .currentStyle property.
You'll probably find some use for Steve Chipman's excellent favelets at
slayeroffice.com - particularly MODI and Style Sheet Viewer.
http://slayeroffice.com/index.php
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!