JavaScript: The Definitive Guide
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 |
Категории