Availability
JavaScript 1.0
Synopsis
<input type="text" onchange="handler" ... >text.onchange
Description
The
onchange property of a Text element refers to an
event handler function that is invoked when the user changes the
value in the input field and then "commits" those changes
by moving keyboard focus (i.e., by clicking the mouse elsewhere or
pressing Tab or Return ).
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 the HTMLElement.onkeypress reference page for
information on receiving notification of every key press event.
See Input.onchange for complete details about the
onchange event handler.
See Also
HTMLElement.onkeypress, Input.onchange; Chapter 19;
Event, EventListener, and EventTarget in the DOM reference section
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
JavaScript: The Definitive Guide, 4th Edition
By
David Flanagan
Publisher
: O'Reilly
Pub Date
: November 2001
ISBN
: 0-596-00048-0
Pages
: 936
Slots
: 1
This fourth edition of the definitive reference to
JavaScript, a scripting language that can be embedded
directly in web pages, covers the latest version of the
language, JavaScript 1.5, as supported by Netscape 6 and
Internet Explorer 6. The book also provides complete
coverage of the W3C DOM standard (Level 1 and Level 2),
while retaining material on the legacy Level 0 DOM for
backward compatibility.