Get A Cursor

Script by:Forrest.neiberg@globalone.net

     Here's a little helpful script for everyone who has ever made a form and wants to have the cursor pop into their first tab-ordered field when the page comes up. You'd think there'd be an HTML way to do this. This is what I mean:


Please enter a number:

     See the cursor? You don't get that straightaway with forms. There are two steps to this: First, add a command to your BODY statement. Like so:

<body onLoad="self.focus();document.Form_Name.Field_Name.focus()">

     Then you need to give your form the same name you used in the body command. Thus the two are linked together. Here's the first line from the form above:

<FORM METHOD="POST" ACTION="mailto:????@????????.???" name="Form_Name">

     See that? Then you get a cursor.

Back to the Button, Links, and E-Mail Scripts