[thelist] onFocus

Jeff C jeffc33 at hotmail.com
Tue Oct 30 12:58:01 CST 2001

>I would like to have the cursor focus in the input box. What is wrong with
>this statement?
><form name="srchfrm" method="get" action="engine.htm"
>onSubmit="check(this.srchtxt);" target="_top">
><input type="text" size=30 name="srchtxt">

Change onFocus=
to be

and move it to the body tag.

<body onLoad="window.document.srchfrm.srchtxt.focus();">

Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

More information about the thelist mailing list