Idocs Guide to HTML

Attribute for <INPUT ...>
ACCESSKEY = "text string"

ACCESSKEY specifies a shortcut key to go directly to the input field. The key is pressed along with the ALT key. For button style fields, using the key is like pressing the button. So, in the form produced with this code:

<INPUT TYPE=SUBMIT 
    ACCESSKEY="g"
    VALUE="Go!"
    >

You can submit the form by hitting ALT-g:

For text entry fields, the key takes the cursor to that field. So with this code:

color: <INPUT TYPE=INPUT 
    NAME="color"
    ACCESSKEY="c"
    >

ALT-c takes you to the input field:

color:
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.