devxlogo

Add Accelerator Keys to Your Internet Explorer Pages

Add Accelerator Keys to Your Internet Explorer Pages

Many computer users, especially power users, prefer keyboard commands instead of the mouse. Accelerator keys are common in compiled applications such as Visual Basic programs, but rare on Web pages. If you are using Internet Explorer, you can insert accelerator keys into form controls using the accesskey attribute. The user can press Alt+ to move directly to a control. This code shows the use of accelerator keys in a form.

 
First name:
Last name:

Submit

As of this writing (6/28/99), Netscape Navigator doesn’t support the accesskey attribute.

devx-admin

Share the Post: