[11627] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: CURSOR positioning????? (from mainframer)

daemon@ATHENA.MIT.EDU (Clover Andrew)
Mon May 15 04:51:44 2000

Message-Id: <5F78AA062F6AD311A59000508B4AAF6D092B23@pcs02>
From: Clover Andrew <aclover@1VALUE.com>
To: "'Randy Abner'" <randy.abner@mail.state.ar.us>,
        "'www-talk@w3.org'"
	 <www-talk@w3.org>
Date: Mon, 15 May 2000 10:39:14 +0200
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Resent-From: www-talk@w3.org

Randy Abner <randy.abner@mail.state.ar.us> pondered:

> I am needing to position the cursor on the first input field 
> when my FORM is first displayed - without the user having to
> point-click to it. I can't find a HTML keyword that
> corresponds to this command.  

Nope. Because it is a command, and not really markup, you'll
want to look at a client-side scripting solution. The quick
'n' dirty JavaScript answer would be:

  <body onload="document.forms['x'].elements['y'].focus();">

where x and y are the names of the form and input field in
question.

hth

-- 
Andrew Clover
Technical Support
1VALUE.com AG


home help back first fref pref prev next nref lref last post