diff options
Diffstat (limited to 'files/nl/web/api/element/mouseout_event/index.html')
| -rw-r--r-- | files/nl/web/api/element/mouseout_event/index.html | 260 |
1 files changed, 0 insertions, 260 deletions
diff --git a/files/nl/web/api/element/mouseout_event/index.html b/files/nl/web/api/element/mouseout_event/index.html deleted file mode 100644 index a3fdc91448..0000000000 --- a/files/nl/web/api/element/mouseout_event/index.html +++ /dev/null @@ -1,260 +0,0 @@ ---- -title: mouseout -slug: Web/API/Element/mouseout_event -translation_of: Web/API/Element/mouseout_event -original_slug: Web/Events/mouseout ---- -<p>Het <code>mouseout</code> event wordt uitgevoerd wanneer een aanwijzend apparaat (doorgaans een muis) van het element (of een van zijn children) dat de listener aan zich heeft verbonden, af is bewogen. </p> - -<h2 id="Algemene_info">Algemene info</h2> - -<dl> - <dt style="float: left; text-align: right; width: 120px;">Specificatie</dt> - <dd style="margin: 0 0 0 120px;"><a class="external" href="http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mouseout" title="http://www.w3.org/TR/DOM-Level-3-Events/#event-type-dblclick">DOM L3</a></dd> - <dt style="float: left; text-align: right; width: 120px;">Interface</dt> - <dd style="margin: 0 0 0 120px;">MouseEvent</dd> - <dt style="float: left; text-align: right; width: 120px;">Bubbles</dt> - <dd style="margin: 0 0 0 120px;">Ja</dd> - <dt style="float: left; text-align: right; width: 120px;">Cancelable</dt> - <dd style="margin: 0 0 0 120px;">Ja</dd> - <dt style="float: left; text-align: right; width: 120px;">Target</dt> - <dd style="margin: 0 0 0 120px;">Element</dd> - <dt style="float: left; text-align: right; width: 120px;">Default Action</dt> - <dd style="margin: 0 0 0 120px;">Geen</dd> -</dl> - -<h2 id="Eigenschappen">Eigenschappen</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Property</th> - <th scope="col">Type</th> - <th scope="col">Description</th> - </tr> - </thead> - <tbody> - <tr> - <td><code>target</code> {{readonlyInline}}</td> - <td><a href="/en-US/docs/Web/API/EventTarget" title="EventTarget is an interface implemented by objects that can receive events and may have listeners for them."><code>EventTarget</code></a></td> - <td>The event target (the topmost target in the DOM tree).</td> - </tr> - <tr> - <td><code>type</code> {{readonlyInline}}</td> - <td><a href="/en-US/docs/Web/API/DOMString" title="DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String."><code>DOMString</code></a></td> - <td>The type of event.</td> - </tr> - <tr> - <td><code>bubbles</code> {{readonlyInline}}</td> - <td><a href="/en-US/docs/Web/API/Boolean" title="The Boolean object is an object wrapper for a boolean value."><code>Boolean</code></a></td> - <td>Whether the event normally bubbles or not</td> - </tr> - <tr> - <td><code>cancelable</code> {{readonlyInline}}</td> - <td><a href="/en-US/docs/Web/API/Boolean" title="The Boolean object is an object wrapper for a boolean value."><code>Boolean</code></a></td> - <td>Whether the event is cancellable or not?</td> - </tr> - <tr> - <td><code>view</code> {{readonlyInline}}</td> - <td><a class="new" href="/en-US/docs/Web/API/WindowProxy" rel="nofollow" title="The documentation about this has not yet been written; please consider contributing!"><code>WindowProxy</code></a></td> - <td><a href="/en-US/docs/Web/API/Document/defaultView" title="In browsers, document.defaultView returns the window object associated with a document, or null if none is available."><code>document.defaultView</code></a> (<code>window</code> of the document)</td> - </tr> - <tr> - <td><code>detail</code> {{readonlyInline}}</td> - <td><code>long</code> (<code>float</code>)</td> - <td>A count of consecutive clicks that happened in a short amount of time, incremented by one.</td> - </tr> - <tr> - <td><code>currentTarget</code> {{readonlyInline}}</td> - <td>EventTarget</td> - <td>The node that had the event listener attached.</td> - </tr> - <tr> - <td><code>relatedTarget</code> {{readonlyInline}}</td> - <td>EventTarget</td> - <td>For <code>mouseover</code>, <code>mouseout</code>, <code>mouseenter</code> and <code>mouseleave</code> events: the target of the complementary event (the <code>mouseleave</code> target in the case of a <code>mouseenter</code> event). <code>null</code> otherwise.</td> - </tr> - <tr> - <td><code>screenX</code> {{readonlyInline}}</td> - <td>long</td> - <td>The X coordinate of the mouse pointer in global (screen) coordinates.</td> - </tr> - <tr> - <td><code>screenY</code> {{readonlyInline}}</td> - <td>long</td> - <td>The Y coordinate of the mouse pointer in global (screen) coordinates.</td> - </tr> - <tr> - <td><code>clientX</code> {{readonlyInline}}</td> - <td>long</td> - <td>The X coordinate of the mouse pointer in local (DOM content) coordinates.</td> - </tr> - <tr> - <td><code>clientY</code> {{readonlyInline}}</td> - <td>long</td> - <td>The Y coordinate of the mouse pointer in local (DOM content) coordinates.</td> - </tr> - <tr> - <td><code>button</code> {{readonlyInline}}</td> - <td>unsigned short</td> - <td>The button number that was pressed when the mouse event was fired: Left button=0, middle button=1 (if present), right button=2. For mice configured for left handed use in which the button actions are reversed the values are instead read from right to left.</td> - </tr> - <tr> - <td><code>buttons</code> {{readonlyInline}}</td> - <td>unsigned short</td> - <td>The buttons being pressed when the mouse event was fired: Left button=1, Right button=2, Middle (wheel) button=4, 4th button (typically, "Browser Back" button)=8, 5th button (typically, "Browser Forward" button)=16. If two or more buttons are pressed, returns the logical sum of the values. E.g., if Left button and Right button are pressed, returns 3 (=1 | 2). <a href="/en-US/docs/Web/API/MouseEvent">More info</a>.</td> - </tr> - <tr> - <td><code>mozPressure</code> {{readonlyInline}}</td> - <td>float</td> - <td>The amount of pressure applied to a touch or tabdevice when generating the event; this value ranges between 0.0 (minimum pressure) and 1.0 (maximum pressure).</td> - </tr> - <tr> - <td><code>ctrlKey</code> {{readonlyInline}}</td> - <td>boolean</td> - <td><code>true</code> if the control key was down when the event was fired. <code>false</code> otherwise.</td> - </tr> - <tr> - <td><code>shiftKey</code> {{readonlyInline}}</td> - <td>boolean</td> - <td><code>true</code> if the shift key was down when the event was fired. <code>false</code> otherwise.</td> - </tr> - <tr> - <td><code>altKey</code> {{readonlyInline}}</td> - <td>boolean</td> - <td><code>true</code> if the alt key was down when the event was fired. <code>false</code> otherwise.</td> - </tr> - <tr> - <td><code>metaKey</code> {{readonlyInline}}</td> - <td>boolean</td> - <td><code>true</code> if the meta key was down when the event was fired. <code>false</code> otherwise.</td> - </tr> - </tbody> -</table> - -<h2 id="Voorbeeld">Voorbeeld</h2> - -<p>Het volgende voorbeeld illustreert het verschil tussen <code>mouseout</code> en <a href="/en-US/docs/Web/Events/mouseleave" title="/en/Mozilla_event_reference/mouseleave"><code>mouseleave</code></a> events.</p> - -<pre class="brush: html"><ul id="test"> - <li>item 1</li> - <li>item 2</li> - <li>item 3</li> -</ul> - -<script> - var test = document.getElementById("test"); - - - // this handler will be executed only once when the cursor moves off the unordered list - test.addEventListener("mouseleave", function( event ) { - // highlight the mouseleave target - event.target.style.color = "purple"; - - // reset the color after a short delay - setTimeout(function() { - event.target.style.color = ""; - }, 500); - }, false); - - - // this handler will be executed every time the cursor is moved off a different list-item - test.addEventListener("mouseout", function( event ) { - // highlight the mouseout target - event.target.style.color = "orange"; - - // reset the color after a short delay - setTimeout(function() { - event.target.style.color = ""; - }, 500); - }, false); -</script> -</pre> - -<h2 id="Browsercompatibiliteit">Browsercompatibiliteit</h2> - -<p>{{CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Edge</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Basisondersteuning</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - <tr> - <td>Op disabled formelementen</td> - <td>{{CompatVersionUnknown}}<sup>[1]</sup></td> - <td>{{CompatGeckoDesktop("44.0")}}<sup>[2]</sup></td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatVersionUnknown}}<sup>[1]</sup></td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basisondersteuning</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td>Op disabled formelementen</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Werkt alleen voor {{HTMLElement("textarea")}}-elementen en sommige {{HTMLElement("input")}} element types.</p> - -<p>[2] Geïmplementeerd in {{bug("218093")}}.</p> - -<h2 id="Zie_ook">Zie ook</h2> - -<ul> - <li>{{event("mousedown")}}</li> - <li>{{event("mouseup")}}</li> - <li>{{event("mousemove")}}</li> - <li>{{event("click")}}</li> - <li>{{event("dblclick")}}</li> - <li>{{event("mouseover")}}</li> - <li>{{event("mouseout")}}</li> - <li>{{event("mouseenter")}}</li> - <li>{{event("mouseleave")}}</li> - <li>{{event("contextmenu")}}</li> -</ul> |
