August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onMouseDown="command"The onMouseDown event handler is defined in an <input> tag and specifies what to do when the button is chosen.
The code in Listing 7.31 uses the onMouseDown event handler to display an alert box any time the button is chosen.
<html>
<form name="myForm">
<input type="button"
value="Big Button"
name="myButton"
onMouseDown="alert('MouseDown event occured')">
</form>
</html>
|
Read now
Unlock full access