• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Using Core HTML Properties > 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



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint