Easy Tutorial
❮ Event Onkeyup Dom Obj Password ❯

select() Method

Input Text Object

Example

Select the content of a text field:

document.getElementById("myText").select();

Definition and Usage

The select() method is used to select the content of a text field.


Browser Support

All major browsers support the select() method.


Syntax

Parameters

| None. |

Technical Details

| Return Value: | No return value | | --- | --- |

❮ Event Onkeyup Dom Obj Password ❯