HTML CSS Reference/CSS Attributes and Javascript Style Properties/accelerator

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

"accelerator" Example

   <source lang="html4strict">
   

<html> <body>

Press Alt+N to get the focus.

<input id="myN" type="text" size="30" accesskey="N" value="Access N"> </body> </html>


     </source>
   
  


"accelerator" is applied to

   <source lang="html4strict">

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

| |
| | |<body>
|

| | | | |currentStyle <custom> | | |

defaults | | | |

| |<dir>
| | |
| | | <embed> | | |<fieldset> | | |<form> <hn> | | | <iframe> | | | | | |<label> <legend> | | |
  • <listing> | | |<menu>
      | | |

                               |
      |                |                                                       |
      |                |                          runtimeStyle                  |
      |                |                                                     |
      |                |<select>                                               |
      |                |                                                |
      |                |                        style                         |
      |                |                                                    |
      |                |                         <textarea>                    |
      |                |                                                       |
      |                |
        | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "accelerator" Syntax and Note

        <source lang="html4strict"> Note: Whether(true or false) to activate an element using an accelerator key.

        Syntax:

        element { accelerator: value } elementID.style.accelerator = "value" document.all.elementID.style.accelerator = "value"


        </source>