Form JavaScript Tutorial

Syntax

onMouseDown="command"
The onMouseDown event handler is defined in an tag and specifies what to do when the button is chosen.


    
                   value="Big Button"
             name="myButton"
             onMouseDown="alert('MouseDown event occured')">