Re: Get an elements style value as it is in the .css file

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Dave wrote:
> How do I, via javascript, get an elements style value as it is in
> the .css file, and not the computed value.

You mean the specified value?  You don't.

You can read the style for a given rule, but then you have to figure out 
which rule is the one that matters for the given element.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.