Catching Events at the Window Level

This web page shows how to catch events that occure in the window.  I use alerts and the window status bar to show information about the events happening in the window.

event Description IE Netscape
onLoad() After window is loaded, this event calls a function that shows an alert box. Yes Yes
onUnload() After window is closed, this event calls a function that shows an alert box. Yes Yes
onClick() Click the left mouse button and an alert box will show. Yes No
onMouseDown() Click and hold your mouse buttons (Right, Left, Center) down - do not release.  Now look look at the status bar in the lower left area of this window. Yes No
onResize() Resize the window - notice the words in the status bar. Yes Yes
onMove() Move the window - look at the status bar. No Yes
onDragDrop()