<!DOCTYPE HTML> <html> <body> <div id="input" style="width:250px; height:200px; border:10px solid red; padding:5px; outline:none" contentEditable="true"></div> <script> window.focus(); document.getElementById("input").focus(); </script> </body> </html>