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

Chapter 12. Handling Events > Handling a Window or Frame Event

12.3. Handling a Window or Frame Event

A window is the main Web page, unless it is divided up into frames. There are a number of events that will affect windows and frames; these are described in Table 12.3. The following examples illustrate some of the events that affect windows and frames.

Table 12.3. Window and frame events.
Event HandlerWhen It Is Triggered
onBlurWhen the mouse moves away from the window or frame and it loses focus
onFocusWhen the mouse is clicked or moved in a window or frame and it gets focus
onLoadWhen a document or image has finished loading
onMoveWhen a window is moved[a]
onUnLoadWhen a page is exited or reset


[a] The onMove event handler in Netscape Navigator 4.0 is enabled only for the window object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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