[thelist] cursor positioning with PHP
Bernardo Escalona
escalonab at gmail.com
Fri Feb 25 19:42:20 CST 2005
List:
First a big thankyou for all the replies about PHP/MySQL security.
Thanks to your ideas I've been doing great progress.
Ok, I want to have the cursor automatically placed in the 'login'
field of a form as soon as the page loads up.
To do this i added a little javascript at the top of the page, and it
works fine:
<script>
<!--
// this is to automatically place the cursor in the login field
// when the page loads
function cursor_pos(){
document.login_form.username.focus();
}
// -->
</script>
Is this a good way to do it?
I was mostly looking for a way to do this directly from php. Any suggestions?
Berns
--
___________________________________________
Bernardo Escalona Espinosa
tel: 56 22 85 23
cel: 55 18 56 74 73
http://www.bernsonline.com/
More information about the thelist
mailing list