Name
Textarea.onchange: event handler invoked when input value changes — DOM Level 0
Synopsis
Function onchange
Description
The onchange property of a
Textarea refers to an event-handler function that is invoked when
the user changes the value in the text area and then “commits” those
changes by moving the keyboard focus elsewhere.
Note that the onchange
event handler is not invoked when the value property of a Text object is set by
JavaScript. Also note that this handler is intended to process a
complete change to the input value, and therefore it is not invoked
on a keystroke-by-keystroke basis. See HTMLElement.onkeypress for information on
receiving notification of every key press event and Element.addEventListener( ) for another
way to register event handlers.
See Also
Element.addEventListener(
), HTMLElement.onkeypress, Input.onchange; Chapter 17
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access