<html>
<body>
<input id='a' type="text" style="height: 10px">
<script>
document.getElementById('a').focus();
</script>