<!DOCTYPE html> <div style="height: 2px"></div> <input id="input" style="outline: none"> <script> onload = function() { input.focus(); }; </script>