select()

This method is used to select all the text displayed in the form element.

syntax:

document.all.select()

This method is used with the following:

TEXTAREA
fileUpload
password
text
textRange