FileUpload.select() (Method)

Triggers a Select event on a FileUpload object.

Availability:

DOM level - 1
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Opera - 3.0
JavaScript syntax:-myFileUpload.select()

This selects all the text in the FileUpload object so that it can be cut or copied by the user if necessary, or used as TextRange and have a command executed on it. It also triggers a Select event.

See also:Document.execCommand(), Input.select(), TextRange.execCommand()