<TEXTAREA id="textInput"> text to enter </TEXTAREA>
function focusTextArea() { var main = document.getElementById('textInput'); main.focus(); } function blurTextArea() { var main = document.getElementById('textInput'); main.blur(); }