JavaScript: The Definitive Guide

25.181. Input.select( ): select the text in a form element

DOM Level 2 HTML

25.181.1. Synopsis

void select( )

25.181.2. Description

The select( ) method selects the text displayed in an input element of type "text", "password", or "file". The effects of selecting text may vary from platform to platform, but typically: the text is highlighted, it becomes available for cut and paste, and it is deleted if the user types another character.

Категории