Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Textarea select() method

Textarea select() method

Textarea Object Reference The Textarea object


Definition and Usage

The select() method is used to select the text within this element.

Syntax

textareaObject.select()


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the select() method


Example

Example

The example below selects the text in a text box:

Runoob Tutorial(runoob.com)


Textarea Object Reference The Textarea object