A little corection

Ernest E Vogelsinger wrote:
At 09:42 20.03.2003, Angelo Zanetti said:
--------------------[snip]--------------------

Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts?

TIA

--------------------[snip]--------------------


This is done with a JavaScript "OnLoad" handler:

<body onload="forms[myform].elements[pass].focus();">
<body onload="forms['myform'].elements['pass'].focus();">
...[page contents]...
<form name="myform" method="post" ...>
<input type="password" name="pass">
</form>
...[more page contents]...
</body>




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to