Event handlers
Another important feature of Javascript are event handlers.The following events are defined:
Abort,Blur,Click,Change,DblClick,DragDrop,Error,
Focus, KeyDown, KeyPress,
KeyUp, Load, MouseDown, MouseMove, MouseOut, MouseOver, MouseUp,
Move, Reset, Resize, Select, Submit, Unload.
Writing a Javascript program that interacts with the user means
writing a set of functions and defining them as event handlers
with the HTML tag onEventname = 'functionname()';
Another way to associate the function to the
event is to define the property of the object
associated with the event. objectname.oneventname=functionname;