Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

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.