Button.onMouseDown : Button : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Button »

 

Button.onMouseDown









Syntax








onMouseDown="command"



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












<html>
    <form name="myForm">
      <input type="button"
             value="Big Button"
             name="myButton"
             onMouseDown="alert('MouseDown event occured')">
    </form>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Button