JavaScript Reference/Event Handlers Reference/onLoseCapture
Содержание
"onLoseCapture" Example
<head>
</head>
<body onload="captureMode.setCapture()"
onclick="captureMode.releaseCapture()">
<div id="captureMode" onlosecapture="alert("Mouse capture terminated.")">
<p>Mouse capture is currently turned on.
To terminate mouse capture mode, click this page!</p>
</div>
</body>
"onLoseCapture" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <address> |
| |<applet> <area> |
| |<b> <bdo> |
| |<big> <blockquote> |
| |<body> <br> |
| |<button> <caption> |
| |<center> <cite> |
| |<code> <custom> |
| |<dd> <dfn> |
| |<dir> <div> |
| |<dl> <dt> |
| |<em> <embed> |
| |<fieldset> <font> |
| |<form> <hn> |
| |<hr> <i> |
| |<img> <input type="button"> |
| |<input type="checkbox"> <input type="file"> |
| |<inputtype="hidden"> <input type="image"> |
| |<input type="password"> <inputtype="radio"> |
| |<input type="reset"> <input type="submit"> |
| |<input type="text"> <kbd> |
| |<label> <legend> |
| |<li> <listing> |
| |<map> <marquee> |
| |<menu> <nobr> |
| |<noframes> <object> |
| |<ol> <option> |
| |<p> <pre> |
| |<s> <samp> |
| |<select> <small> |
| |<span> <strike> |
| |<strong> <sub> |
| |<sup> <table> |
| |<tbody> <td> |
| |<textarea> <tfoot> |
| |<th> <thead> |
| |<tr> <tt> |
| |<u> <ul> |
| |<var> <xmp> |
+----------------+--------------------------------------------------------------+
"onLoseCapture" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |clientX clientY |
| |ctrlKey ctrlLeft |
| |offsetX offsetY |
| |screenX screenY |
| |shiftKey shiftLeft |
| |srcElement type |
| |x y |
+----------------+--------------------------------------------------------------+
"onLoseCapture" Syntax and Note
Note:
This event fires when an element that is currently trapping mouse events
loses that ability.
Syntax: