Availability
JavaScript 1.0
Synopsis
input.select( )Description
The select( ) method selects the text displayed in
a Text, Textarea, Password, or FileUpload element. The effects of
selecting text may vary from platform to platform, but typically,
invoking this method produces the same result as the user dragging
the mouse across all the text in the specified Text object. On most
platforms, this produces the following effects:
- The text is highlighted, often displayed with colors reversed.
- If the text remains selected the next time the user types a
character, the selected text is deleted and replaced with the newly
typed character. - On some platforms, the text becomes available for cut-and-paste.
The user can usually deselect text by clicking in the Text object or
by moving the cursor. Once deselected, the user can add and delete
individual characters without replacing the entire text value.
•
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.