Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: All
Jun 28, 1999

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+<accesskey> to move directly to a control. This code shows the use of accelerator keys in a form.

 
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM action=mypage.asp method=post>
<U>F</U>irst name: 
<INPUT id=fname name=fname accesskey=f><BR>
<U>L</U>ast name: 
<INPUT id=lname name=lname accesskey=l><P>
<U>S</U>ubmit 
<INPUT type="submit" value="Submit" id=submit1 name=submit1 accesskey=s>
</FORM>
</BODY>
</HTML>

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

Ken Cox
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date