function setup() { document.getElementById("name1").focus(); } window.addEventListener('load', setup, false);