atur fokus pada load javascript

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