RE: [PHP] HTML Focus

From: Date: Thu, 04 Jan 2001 14:44:08 +0000
Subject: RE: [PHP] HTML Focus
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32637@lists.php.net to get a copy of this message
This should work: <script> <!-- function setfocus() { document.f.id.focus(); } // --> </script> <BODY onLoad="setfocus()"> <FORM ACTION="mainModify.phtml" METHOD=GET NAME=f> <INPUT NAME=id TYPE=TEXT VALUE=""> </FORM> Where f==name of the form and id==name of element to have focus Robert Zwink http://zwink.levitate.org -----Original Message----- From: Michael Conley [mailto:mconley@nsiis.com] Sent: Wednesday, January 03, 2001 1:15 PM To: 'php-general@lists.php.net' Subject: [PHP] HTML Focus I realize that this may not be a PHP question, but how do I control where the cursor is when a page is opened? I have a login page that I want the cursor automatically on the USERID box when the page is opened. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#32637) next »