Help with Automatic Cursor Placement

P

Paul

I am trying to have automatic cursor placement on my
search form so that when the form opens the cursor will be
blinking in the text field.

I have tried to follow the instructions on
http://www.windyweb.com/html_tips.htm but I don't seem to
have any joy getting it too work. I can not work out
where to put the neccesary javascript code.

This is all new to me!
 
F

FrontPageForms

Paul,

I don't think this will work with the built in FP search
page. If you look at the HTML for that page, you will
notice that the textbox doesn't have a traditional name,
nor, does the form actually have a name.

This renaming of the form and the textbox are part of the
script. Either that or renaming the the variables in the
script to match that of the form.

It certainly looks like it will work with a simple form.

Mike,
Temporarily @ http://FrontPag.Bizland.com
Form Tutorials & Form Script Examples
 
J

jon spivey

Hi,
Haven't actually used an FP search form but we should be able to address the
forms by index rather than name - 0 is the first form element on the page 1
the second etc(the first of anything in javascript is always 0 not 1 as you
might expect). So type in HTML view
<body onload="document.forms[0].elements[0].focus();">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top