Website hositng, design and development Specialists - Prairie 21, Incorporated
Learn How Now
HomeContact UsInformationSearch
with Professional Video Training
Web Design ServicesWeb Design TrainingWeb Development ResourcesFree Web Desgin Downloads
HTML
JavaScript
Links
INDEX
Title
Introduction
What is JavaScript
Intro to Objects
Common Events
Capturing Events
Data Validation
Images
Windows
Summary
Next Steps
JavaScript
Previous

Next

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.