currentStyle Property
Value: style object
Compatibility: WinIE5+, MacIE5+
Every element has style atrributes applied to it even if those atrributes are the browser’s default settings. Because an element’s style object reflects only those properties whose corresponding atrributes are set via CSS statements , you can not use the style property of an element object to view default style settings applied to an element.That’s where the currentStyle property comes in.
This property returns a read-only style object that contains values for every possible style property applicable to the element.
Related items: runtimeStyle, window.getComputedStyle( )
Leave a Reply
You must be logged in to post a comment.
