Ron's Ramblings

Wednesday, February 02, 2005

Javascript Form Focus

Use this code to make a form put the focus on the "user" field of the form when the page loads:




<body onload="document.login.user.focus()">





<script language="javascript" type="text/javascript">





  document.login.user.focus();



</script>



0 Comments:

Post a Comment

<< Home