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>

Leave a Reply