marcoma
asked on
Automatically having the cursor in the text box
Look at this code:
<HTML><TITLE>Drop down menu of publications</TITLE>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
// Identify browser
browserName = navigator.appName;
browserOK = true;
if (browserName == "Microsoft Internet Explorer")
browserOK = false;
if (browserOK) {
alert("Please use MICROSOFT INTERNET EXPLORER if you intend to use the 'Add HYPERLINK' button. This button will not work when using Netscape.")
}
// -->
</SCRIPT>
</HEAD>
<FONT SIZE=-2>
Internet and Oracle database programming by <FONT COLOR=red>Marco Mastrocola</FONT> email:<A HREF="mailto:marco@coolmai l.net">mar co@coolmai l.net</A>
</FONT>
<H2><BR><BR><CENTER>Choose a publication to edit<BR></H2>
<FORM METHOD="post" ACTION="see_or_change.see_ rec">
Type in a publication number:<INPUT TYPE="text" NAME="typed_rec_in" SIZE=10 VALUE=" ">
<INPUT TYPE="hidden" NAME="the_rec_number" VALUE="">
<INPUT TYPE="submit" VALUE="Show record">
</FORM>
</HTML>
All I want is for the cursor to automatically be in the text box when the page opens, instead of the user to have to click in the box before typing in a number.
How do I do it?
<HTML><TITLE>Drop down menu of publications</TITLE>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
// Identify browser
browserName = navigator.appName;
browserOK = true;
if (browserName == "Microsoft Internet Explorer")
browserOK = false;
if (browserOK) {
alert("Please use MICROSOFT INTERNET EXPLORER if you intend to use the 'Add HYPERLINK' button. This button will not work when using Netscape.")
}
// -->
</SCRIPT>
</HEAD>
<FONT SIZE=-2>
Internet and Oracle database programming by <FONT COLOR=red>Marco Mastrocola</FONT> email:<A HREF="mailto:marco@coolmai
</FONT>
<H2><BR><BR><CENTER>Choose
<FORM METHOD="post" ACTION="see_or_change.see_
Type in a publication number:<INPUT TYPE="text" NAME="typed_rec_in" SIZE=10 VALUE=" ">
<INPUT TYPE="hidden" NAME="the_rec_number" VALUE="">
<INPUT TYPE="submit" VALUE="Show record">
</FORM>
</HTML>
All I want is for the cursor to automatically be in the text box when the page opens, instead of the user to have to click in the box before typing in a number.
How do I do it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That is just what I needed. Thanks.
nathans:
As you can see, comments can be accepted as answers at any point by the questioner (but I agree about unanswered questions lying about).
marcoma:
Thanks!!
Tom
As you can see, comments can be accepted as answers at any point by the questioner (but I agree about unanswered questions lying about).
marcoma:
Thanks!!
Tom
Sorry, I just hate to have the unanswer questions lying around.