Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Showing Shortcut key in button


Message #1 by Darren Wogan <darrenw@s...> on Tue, 27 Mar 2001 11:54:46 +0100
If you have text beside a <input> field you can indicate any shortcut key

e.g.:



	Enter <u>N</u>ew Value

	<input type="text" accesskey="n" size=10 maxlength=10>



which displays as:



	Enter New Value : [                  ]



(i.e. the 'N' is underlined)



However if there any way of indicating the acesskey accelerator linked to a

button? The normal convention is to use and ampersand before the character.

Thus '&Print' displays as 'Print' (ie. the P is underlined). However for

HTML buttons this does not work and the & is included in the text of the

button. You are also unable to include the <u></u> delimiters within the

text of a button title.



If there therefore any way to indicate the accesskey so that it is visible

to the user which key they can press to activate that key?





______________________________________

Darren Wogan, Consultant

mailto:darrenw@s...

______________________________________

Strategic Thought Ltd.

The Old Town Hall,

4 Queens Road,

Wimbledon,

London,

SW19 8YA.

Tel: +44 (0)20-8410 4000

Fax: +44 (0)20-8410 4030

http://www.strategicthought.co.uk

___________________________________________

Risk-Proof Your Business: http://www.arm-risk.com

___________________________________________






  Return to Index