25.257. Select.onchange: event handler invoked when the selection changesDOM Level 025.257.1. SynopsisFunction onchange 25.257.2. DescriptionThe 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 AlsoElement.addEventListener( ), Option; Chapter 17 |