Hot keys

liunx

Guest
How do you create Hot Keys on buttons in HTML. I was searching through the web for an answer and saw that it is possible to do this on text in HTML, but don't see anywhere on how to do this for buttons.<br />
<br />
For example, if a form has 3 buttons, SUBMIT, RESET, and CANCEL, and I want to set the following hot-keys on each button: S, R, and C (respectively). Additionally, I would want to have each of these letters underlined on their respective buttons. I can't see how to do this. <br />
<br />
Any help is much appreciated. Thanks!<!--content-->If you modify this script you may be able to:<br />
<!-- m --><a class="postlink" href="http://javascript.internet.com/navigation/key-launcher.html">http://javascript.internet.com/navigati ... ncher.html</a><!-- m --><!--content-->You can't do it with HTML code. You need to use a scripting language and HTML code. JAVA script might be able to do all the things you want but not the buttons with the underlined first letter, for that VBscript might work, but then it may not work well except in the IE browser. For the buttons you can make GIF images that would look exactly how you want them to, then combine that with some script and you might get the desired effect. Flash may also be an alternative.<br />
<br />
Regards,<br />
Kevin<!--content-->Ok. Thanks for the info. That is what I had assumed, but thought that maybe there was a better way that I just didn't know about.<br />
<br />
Much appreciated!!!<!--content-->Have a look overhere:<br />
<!-- m --><a class="postlink" href="http://www.wsabstract.com/howto/button.shtml">http://www.wsabstract.com/howto/button.shtml</a><!-- m --><!--content-->i know how to do this using VBscript, using the '&' chararcter, but i am pretty sure, as stated above it cannot be done in html!!!<br />
sorry....<br />
gatty<!--content-->Yeah, I've come to that conclusion as well. Thanks for the information.<!--content-->
 
Back
Top