if ( window.addEventListener ) window.addEventListener( "load", focusIt, false ); else if ( window.attachEvent ) window.attachEvent( "onload", focusIt ); function focusIt() { document.getElementById( "_login_ounetid" ).focus(); }