JavaScript Reference/Event Handlers Reference/onMouseLeave

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

"onMouseLeave" Example

   <source lang="javascript">
   

<head> <script language="JavaScript">

   function function1(){
       alert("The "+event.type+" event fired") 
   } 

</script> </head> <body>

       Move the mouse over this div element area.

</body>


     </source>
   
  


"onMouseLeave" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | |<base> <basefont> | | | <bgsound> |

| |
|

| |<body> <button> |

| |
|

| | | | |<custom>

| | | <dir> |

| |
|

| |

| | |<embed> <fieldset> | | | <form> |

| |<hn>
|

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

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

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

        "onMouseLeave" Properties

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

        </source>



        "onMouseLeave" Syntax and Note

        <source lang="javascript"> Note:

        This event fires when the mouse pointer leaves an object"s area.


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |