Event handler for Button, Document
The onMouseDown event handler is used to execute specified
uses the following properties of the Event
type - indicates the type of event.
target - indicates the target object to which the event was sent.
layerX, layerY, pageX, pageY, screenX, screenY
indicate the cursor location at the time of the MouseDown
which - 1 represents a left mouse click and 3 a right click.
modifiers - lists the modifier keys (shift, alt, ctrl, etc.)
held down when the MouseDown event occurs.
For example, with the following code, the user can click on the word
'green' to alter the background color to green. Depressing the mouse
button calls the 'changeColor' function to do this:
<P>Click on <B><A onMouseDown="changeColor()">
green</A></B> to change background color.</P>