JavaScript Reference/Event Handlers Reference/onBeforeActivate

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

"onBeforeActivate" Example

   <source lang="javascript">
   

<html> <body>

Press tab to bring the following link into focus.

<a href="http://www.wbex.ru/"

  target=_blank 
  onbeforeactivate="alert("activated")">
  wbex.ru

</a> </body> </html>


     </source>
   
  


"onBeforeActivate" is applied to

   <source lang="javascript">

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

| |
|

| |<body> <button> |

| |
|

| | | | |<custom>

| | | <dir> |

| |
|

| |document

| | | <embed> | | |<fieldset> | | |<form> <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"> | | | <label> |

| |<legend>
  • | | |<listing> <map> | | |<marquee> <menu> | | |<nobr>
      | | |

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

        "onBeforeActivate" Properties

        <source lang="javascript"> +----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |cancelBubble clientX | | |clientY ctrlKey | | |ctrlLeft fromElement | | |offsetX offsetY | | |screenX screenY | | |shiftKey shiftLeft | | |srcElement type | | |wheelDelta x | | |y | +----------------+--------------------------------------------------------------+

        </source>



        "onBeforeActivate" Syntax and Note

        <source lang="javascript"> Note:

        This event fires immediately before the object receives focus.

        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |