Results 1 to 6 of 6

Thread: [RESOLVED] Focus cursor in textbox on pageload

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    2

    Resolved [RESOLVED] Focus cursor in textbox on pageload

    Hello,
    I've got a working PHP-script. I'm trying to modify it so, that on pageload the cursor automatically goes in the textbox.

    Does someone know what script I have to use to focus the cursor in the textbox on pageload and where I should place it in the following PHP-script? I'm a novice so I blew my mind on this a few times

    Here's the script (the script regarding the textbox mentioned above is red):


    Code:
    <?php
    	echo "
    	<html>
    	<head>
    		<link href=\"../../../CSS/HVB.css\" rel=\"stylesheet\" type=\"text/css\">
    	</head>
    	<body class=starturen>
    	<h1>Tijdregistratie:</h1>
    	<form action='leerling_aanmelden.php' method='post'>
    	<table border = 0 cellspacing = 2 cellpadding = 4>
    		<tr>
    			<td bgcolor='#D2E1F8'>Voer je loginnaam in: <input type='text' name='Loginnaam' size='15'/></td>
    		</tr>
    		<tr>			<td bgcolor='#D2E1F8' align=right><input type='submit' value='Verder' /></td>
    		</tr>
    	</table>
    	</form>
    	</body>
    	</html>
    	"; 
    ?>
    Thanks in advance for your help! My Supurb IT-friends let me down on this...
    Last edited by klaas_h; Jul 20th, 2007 at 03:55 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width