<input type="text" id="txt" />
<script type="text/javascript">
$(document).ready(function() {
$("#txt").click();
});
</script>
This will focus your textbox on page load.
EDIT : As an alternative to solution #2 (which is better), you can refer this solution.
-KR