JavaScript Reference/Event Handlers Reference/onLoseCapture — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
Содержание
"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: