/

HTML / CSS / JavaScript Tutorial

JavaScript input object method: select()

[this page | pdf | back links]

The select() method of the JavaScript DOM object corresponding to the HTML <input> element selects the (text) content of the field.

 

It has the following syntax with no parameters.

 

textObject.select()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile