Re: How to Set a field to get focus on startup

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Darren Clark (dclark88_at_hotmail.com)
Date: 06/28/04


Date: Mon, 28 Jun 2004 11:20:29 +1000

could try a generic option

function init()
{
    try
    {
        document.forms[0].elements[0].setFocus();
    }
}

"tfs" <tfs@dslextreme-dot-com.no-spam.invalid> wrote in message
news:40df6e31$1_1@Usenet.com...
> How do I set a field on my screen to get focus when the page opens?
>
> Thanks,
>
> Tom
>
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com