JavaScript Reference/Event Handlers Reference/onDeactivate

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"onDeactivate" Example

   <source lang="javascript">
   

<HTML> <head> </head> <body>

Press tab to bring the following link in and out of focus.

<a tabindex="3"

  id="myL" 
  href="http://www.wbex.ru/" 
  target=_blank ondeactivate="alert("The link has been deactivated")">
  www.wbex.ru

</a> </body> </HTML>


     </source>
   
  


"onDeactivate" 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>

        "onDeactivate" Properties

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

        </source>



        "onDeactivate" Syntax and Note

        <source lang="javascript"> Note:

        This event fires when the current object loses focus.

        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |