The currentStyle Property


The currentStyle Property

This property is for use with CSS styles, and gives you more information than the style property by returning style information that was not specifically set with CSS style statements. For example, the <I> element displays text in italics; unless you specifically set this element's CSS style to italics, however, the style property won't reflect that. The currentStyle property will reflect that, however. In this case, the currentStyle property holds a style object whose fontStyle is set to "italic" . You can see the support for this property in Table 5.16.

Table 5.16. The currentStyle Property

Property

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

currentStyle

             

x

x

x

 

Read-only

 

Type: Object



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net