Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 17th, 2004, 01:05 PM
Authorized User
 
Join Date: Nov 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ophillip
Default Adding a keyboard shortcut

Is there a way to indicate a keyboard shortcut (as defined by 'accesskey') in the value of a button? for example: [u]C</u>redit

If memory serves, VB supported something like &Credit to do this, but obviously not valid for JS.

Thanks
 
Old December 17th, 2004, 01:37 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Not sure if you can do it with <input> tags, but most modern browsers allow the <button> tag that you can embed other tags inside, so you could use
Code:
<button>[u]C</u>redit</button>
HTH,

Chris
 
Old December 17th, 2004, 02:20 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

http://msdn.microsoft.com/library/de.../accesskey.asp

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard shortcut to go from cs to aspx file roman BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 June 20th, 2008 01:28 PM
Form ShortCut mateenmohd Access 1 March 28th, 2008 07:48 AM
shortcut mateenmohd Other Programming Languages 2 February 20th, 2008 07:09 AM
How to disable ALT+ENTER keyboard shortcut q2q2 BOOK: Access 2003 VBA Programmer's Reference 0 November 8th, 2006 05:05 PM
keyboard shortcut for 'Reset' crmpicco Excel VBA 4 April 22nd, 2005 08:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.