PDA

View Full Version : focus


angiras
03-27-2003, 05:03 AM
<input type="password" name="pass" onLoad="this.focus();" />

doesn't work ....

what is wrong ?

thank you !!!

glenngv
03-27-2003, 05:27 AM
form element doesn't have onload event handler

<body onload="document.forms[0].pass.focus()">
<form>
<input type="password" name="pass />
</form>
</body>

angiras
03-27-2003, 07:22 AM
yes this I know
I mean without this enerving body onload
directly into the tag

thank you