JavaScript Reference/Event Handlers Reference/onMouseUp

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

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


"onMouseUp" is applied to

   <source lang="javascript">

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

| |
<body> |

| |<button> |

| |
|

| | <custom> | | |

| | | <dir> |

| |
|

| |document

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

| |
|

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

| |
  • <listing> | | |<map> <marquee> | | |<menu> <nobr> | | |<noframes> <noscript> | | |<object>
      | | |<optgroup>

      | | |

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

        "onMouseUp" Properties

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

        </source>



        "onMouseUp" Syntax and Note

        <source lang="javascript"> Note:

        This event fires when the user releases the mouse button.

        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |