'onMouseDown' Example : onMouseDown « Event onMethod « JavaScript DHTML






'onMouseDown' Example

    
<html>
<head>
</head>
<body>
   <input type="button" 
          value="Click here" 
          onmousedown="alert('You just pressed down on a mouse button')">
   click the mouse button to triger the onmousedown event
</body>
</html>

    
      
      








Related examples in the same category