JavaScript Reference/Event Handlers Reference/onActivate

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

"onActivate" Example

   <source lang="javascript">
   

<head> <script language="JavaScript">

  function function1() {
    window.open("http://www.wbex.ru/", "", "width=700, height=600, resizable, scrollbars")
  }

</script></head> <body>

   <label for="myL" accesskey="L">Press Alt+L to invoke the link </label>
   <a id="myL" href="http://www.wbex.ru/" target=_blank onActivate="function1()">
    www.wbex.ru
   </a>

</body>


     </source>
   
  


"onActivate" is applied to

   <source lang="javascript">

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

| |
<body> |

| |<button> |

| |
|

| |<custom>

| | | <dir> |

| |
|

| |document

| | | <embed> | | |<fieldset> | | |<form> <frame> | | |<frameset> <hn> |

| |
|

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

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

      | | |

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

        "onActivate" Properties

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

        </source>



        "onActivate" Syntax and Note

        <source lang="javascript"> Note:

        This event fires when the object has received focus.


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |