Javascript Reference
Categories: onchange

javascript onchange Description

@March 15, 2008, 1:22 a.m.
onchangeFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 2  

Bubbles: No (IE); Yes (NN 6); Cancelable: Yes (IE); No (NN 6)  

Fires when a text-oriented form control or select element loses focus, and its content or chosen item is different from what it was when the element most recently gained focus. Use this event in text-type input and textarea elements to validate an entry for that one field. But also include form-wide validation with the form element's onsubmit event handler. This event fires before the onblur event.

 
Typical Targets

Text-type input, textarea, and select elements.


Powered by Linode.