focus textarea js code example Example: js focus textarea document.getElementById(IdOfTextArea).focus();