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
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.