Is there an HTML equivalent to DSPATR(PC)? I have built a simple HTML form with one input area, a submit button, and some other text and graphics. When the form comes up, I have to move the mouse pointer to the input field & click before I can start filling in the box. Is there any way to eliminate clicking in the box?
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
DSPATR(PC) in HTML
Collapse
X
-
DSPATR(PC) in HTML
On Tuesday, March 23, 1999, 06:45 AM, Ted Holt wrote: Is there an HTML equivalent to DSPATR(PC)? I have built a simple HTML form with one input area, a submit button, and some other text and graphics. When the form comes up, I have to move the mouse pointer to the input field & click before I can start filling in the box. Is there any way to eliminate clicking in the box?
Directly quoting the HTML 4.0 Reference:17.11 Giving focus to an element
In an HTML document, an element must receive focus from the user in order to become active and perform its tasks. For example, users must activate a link specified by the href="http://www.w3.org/TR/REC-html40/interact/struct/links.html#edef-A" class="noxref">A element in order to follow the specified link. Similarly, users must give a href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-TEXTAREA" class="noxref">TEXTAREA focus in order to enter text into it. There are several ways to give focus to an element:- [*]Designate the element with a pointing device.[*]Navigate from one element to the next with the keyboard. The document's author may define a tabbing order that specifies the order in which elements will receive focus if the user navigates the document with the keyboard (see href="http://www.w3.org/TR/REC-html40/interact/forms.html#tabbing-navigation">t abbing navigation). Once selected, an element may be activated by some other key sequence.[*]Select an element through an href="http://www.w3.org/TR/REC-html40/interact/forms.html#access-keys">ac cess key (sometimes called "keyboard shortcut" or "keyboard accelerator").[/list]
-
DSPATR(PC) in HTML
On Tuesday, March 23, 1999, 06:45 AM, Ted Holt wrote: Is there an HTML equivalent to DSPATR(PC)? Is there any way to eliminate clicking in the box? Ted, You could use Javascript to set the focus lets see if I can get this to show with tags < HTML> < TITLE>Focus Example < /TITLE> < BODY onLoad="showfocus()"> < form> < input type="text" name="WithOut Focus" Value="I Don't Have Focus"> < br> < input type="text" name="WithFocus"> < br> < /form> < /BODY> < /HTML> < SCRIPT language="javascript"> function showfocus() { document.forms0.WithFocus.focus() } < /SCRIPT> I dont know of a way to to this through HTML HTH David
Comment
Comment