Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Underlining characters in a buttons value

Status
Not open for further replies.

hcsd

Programmer
Joined
May 17, 2000
Messages
22
Location
US
I am using the accesskey property of a button to enable users to use shortcut keys for navigation. I would like to underline the access key character in the button value but I cannot get it to do this.
 
Tried using graphics for the buttons? Thats probably the best way.. but I'm sure someone has some fancy unsupported style tags that might do this too! -gerrygerry
Go To
 
Here is a non-fancy solution that is part of the W3 recommendation for HTML 4:

<button accesskey=&quot;t&quot;><u>T</u>est</button>

This doesn't work in Netscape versions lower than 6 though (but what does?)...
 
<button accesskey=&quot;t&quot;><u>T</u>est</button> did the job.

Thanks,
hcsd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top