ZVON > References > DOM2 Reference

select (method )

Owning interface and usage:  
HTMLTextAreaElement.select()

Member of these other interfaces:  
none

Description:  
Select the contents of the TEXTAREA.

Parameters:  
none

Returns:  
nothing

Exceptions:  
none


Example:
Source:
   <TEXTAREA id="textInput">
     text to enter
   </TEXTAREA>
JavaScript:
  function selectTextArea() {
    var main = document.getElementById('textInput');
    main.select();
  }
Try it:  
See it: