The currentStyle PropertyThis 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
|