Section 25.257. Select.onchange: event handler invoked when the selection changes


25.257. Select.onchange: event handler invoked when the selection changes

DOM Level 0

25.257.1. Synopsis

 Function onchange 

25.257.2. Description

The onchange property of a Select object refers to an event-handler function that is invoked when the user selects or deselects an option. The event does not specify what the new selected option or options are; you must consult the selectedIndex property of the Select object or the selected property of the various Option objects to determine this.

See Element.addEventListener( ) for another way to register event handlers.

25.257.3. See Also

Element.addEventListener( ), Option; Chapter 17




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net