August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Select.onchange: event handler invoked when the selection changes — DOM Level 0
Function onchange
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.
Element.addEventListener(
), Option; Chapter 17
Read now
Unlock full access