<TEXTAREA id="textInput"> text to enter </TEXTAREA>
function selectTextArea() { var main = document.getElementById('textInput'); main.select(); }