[thelist] Simple HTML form question
Tom Dell'Aringa
pixelmech at yahoo.com
Mon Mar 3 15:51:45 CST 2003
--- Aaron Cole <awcole72 at hotmail.com> wrote:
> Is it possible to have the cursor display in the text field on a
> search form when the page is first opened?
>
> I've noticed that the form on Google's search results page does
> this, but not the original search page.
Not sure what you mean my the second part, but you simply need to set
focus to the field you want the cursor in:
myForm.elements["myField"].focus()
will do the trick.
HTH
Tom
=====
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
More information about the thelist
mailing list