JavaScript Reference/Event Handlers Reference/onFocusOut

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

"onFocusOut" Example

   <source lang="javascript">
   

<html> <head> <script language="JavaScript">

   function function1() {
       alert("<a> element lost focus") 
   } 

</script> </head> <body>

   <a id="myL" href="http://www.wbex.ru/" target=_blank 
      onfocusout="function1()">wbex.ru
   </a>

</body> </html>


     </source>
   
  


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

        "onFocusOut" Properties

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

        </source>



        "onFocusOut" Syntax and Note

        <source lang="javascript"> Note:

        This event fires after focus leaves an element.

        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |