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

Chapter 33. Styling for HTML Elements > Netscape 4 and JavaScript Styling

Netscape 4 and JavaScript Styling

Netscape 4.x exposes three collections of the document object for accessing and altering styling before the document finishes loading: tags, ids, and classes. (After onload, any properties of these properties become read-only.) I covered them briefly in Chapter 23, “HTMLDocument/document,” but they deserve a deeper explanation here.

The document.tags object has styling for every type of HTML element as a property by name. Note Listing 33.10, which indents the paragraph using document.tags.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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