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

Chapter 16. Netscape Layers > Accessing Layers with JavaScript

Accessing Layers with JavaScript

In addition to a layer's attributes, the <layer> tag can include the event handlers onMouseOver, onMouseOut, onFocus, onBlur, and onLoad. You can associate these event handlers with the layer to access JavaScript functions (see "Understanding Event Handlers" in Chapter 11), which CSS layers cannot do directly in Netscape 4 (Figures 16.3 and 16.4).

Figure 16.3. When the page first loads all three layers are showing.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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