March 20, 2001, 12:00 AM — Frames, like form elements and windows, have event handlers. A frame's
event handlers (onLoad, onUnload, onFocus and onBlur) can make your
program wait until some critical event takes place in a frame, before
executing an event.
Using the onFocus event handler, which is activated when you click in a
particular frame, this exercise illustrates frame event handlers.
From this example, you see that frames' event handlers go in the
window anytime that one of the frames in the frameset gets the focus.
In practice, anytime you click on one of framesets, an alert window
launches so the real-world utility of this program is limited.