Tag Archives: event handlers

Mousedown, Mousemove, Mouseover, Mouseout, and Mouseup Events

The Mousedown event occurs when the user press down the mouse button but before the click is complete. The event handler used for this event is onmousedown

The Mousemove event occurs when the user moves the mouse cursor. The event handler used for this event is onmousemove.

The Mouseover event occurs when the user moves the mouse cursor over an element on the web page. The event handler used for this event is onmouseover.

Example:


<a href="http://saigon.ro" onmouseover = "window.alert('Link to another page.');" >Link to another page </a>

Continue reading

The Change Event (onchange)

The Change event occurs when the viewer changes something within a form element. The event handler used for
this event is onchange.

Example:


<form>
   <select onchange = "window.alert('DO NOT change that');">
     <option selected="selected">Yes</option>
     <option>No</option>
     <option>Maybe</option>
   </select>
</form>