HTML CSS Reference/HTML Attributes Reference/accesskey

Материал из Web эксперт
Перейти к: навигация, поиск

"accesskey" Example

   <source lang="html4strict">
   

<HTML> <Title>Example For accesskey</Title> <BODY> <form> <input type="Button"

      accesskey="M" 
      value="Press Alt + M to bring this button intofocus">

</form> </BODY> </HTML>

     </source>
   
  


accesskey is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | | |

| |
<body> |

| |<button> |

| |
|

| |<custom>

| | | |

| |<dir>
| | |
| | | <embed> | | |<fieldset> | | |<hn>
|

| | <img> | | |<input type="button"> <input type="checkbox"> | | |<input type="file"> <inputtype="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> | | |<isindex> | | |<label> <legend> |

| |
  • <listing> | | |<marquee> <menu> | | |<object>
      | | |

                               |
      |                |                                                       |
      |                |                                                     |
      |                |                          <select>                      |
      |                |                                                 |
      |                |                                              |
      |                |                                                    |
      |                |                         <tbody>                       |
      |                |                          |
      |                |                                                       |
      |                |
        | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "accesskey" Syntax and Note

        <source lang="html4strict"> Note:

        Pressing ALT and the keyboard character invokes the element.

        Syntax:

        <element accesskey="value"> . . . </element>


        </source>

      <textarea> | | |<tfoot> | | |<thead>