Released: 12/27/2004
DOWNLOAD CODE FOR THIS ANSWER
Question:
I don't know how to underline a letter of value property of a button when I use AccessKey on it.
Example: <INPUT accessKey="B" type="button" value="Button1"> . I want to underline "B" of "Button1" string above.
Thks for any help,
Answer:
Code:
<button accessKey="F" id="btn" onClick="alert('alt-For the button was pressed ')">
<U>F</U>ind Next</button>
<P>use alt-f or the button to activate an alert</P>

DEMO

"alt-F" or clicking on the button will activate an alert.

 
Top of Page

Valid HTML 4.01!

Views: 272

Valid CSS!