how to focus textarea in javascript code example Example: js focus textarea document.getElementById(IdOfTextArea).focus();