Forum Moderators: coopster
How can I set the code to take the mouse point to the input box by default?
following is the code:
<form method="POST" action="process.php" enctype="multipart/form-data">
<table cellpadding="3" cellspacing="1" width="476" >
<TR><TD width="312"> </TD><TD width="149"><img src="image.php"></TD></TR>
<TR><TD width="312"> </TD><TD width="149">
<input type="text" name="code" size="11" ></TD></TR>
<TR><TD width="312"> </TD><TD width="149">
<input type="submit" value="Proceed" ></TD></TR>
</table></form>
<body onLoad="document.form1.code.focus();">
<form name="form1" method="POST" action="process.php" enctype="multipart/form-data">
<table cellpadding="3" cellspacing="1" width="476" >
<TR><TD width="312"> </TD><TD width="149"><img src="image.php"></TD></TR>
<TR><TD width="312"> </TD><TD width="149">
<input type="text" name="code" size="11" ></TD></TR>
<TR><TD width="312"> </TD><TD width="149">
<input type="submit" value="Proceed" ></TD></TR>
</table></form>