JavaScript Knowledge Base

Give focus to a text field

<script>
	
window.onload = function() {
    document.getElementById('myText').focus();
};

</script>