Capturing Events
Events are captured by notifying the browser what
events we are interested in. This is done by
treating them like normal events. Since the
browser does all the work, all we need to do is let the
browser know what to do when the event occurs.
<input
type="button"
name="aButton"
value="Change"
onClick='ChangeImage();'
onMouseOver='window.status="Change the
image";'
onMouseOut='window.status="Done";'>
In the above example we are capturing the onClick,
onMouseover and onMouseout events.
|