TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [TCLUG:4999] HTML FORM question



Some browsers do it automatically, but most don't. The only way you can be
sure is to use JavaScript.

In your <BODY> tag, use the onLoad attribute, like this:

<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#800080"
onLoad="document.nameofyourformhere.nameofyourtextboxhere.focus()">

Of course, this requires a JavaScript-capable browser.

HTH!
Neal

> -----Original Message-----
> From: Schlough, Mark (NM IT) [mailto:Mark.Schlough@nmb.norwest.com]
> Sent: Tuesday, March 30, 1999 11:18 AM
> To: 'tclug-list@listserv.real-time.com'; 'scalug@kendeco.com'
> Subject: [TCLUG:4999] HTML FORM question
>
>
> Hi,
>
> I'm wondering how I can have an HTML page load up with  the
> cursor focus on
> this field.
>
>
> <INPUT Type="text" ....>
>
> Thanks,
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail:
> tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
>
>