JavaScript Knowledge Base
Give focus to a text field
<script>
	
window.onload = function() {
    document.getElementById('myText').focus();
};
</script>
<script>
	
window.onload = function() {
    document.getElementById('myText').focus();
};
</script>