Document: releaseCapture() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{ApiRef("DOM")}}{{Non-standard_header}}
The **releaseCapture()** method releases mouse capture if it's currently enabled on an element within this document. Once mouse capture is released, mouse events will no longer all be directed to the element on which capture is enabled.
Enabling mouse capture on an element is done by calling {{domxref("element.setCapture()")}}.
Syntax
js-nolint
releaseCapture()Parameters
None.
Return value
None ({{jsxref("undefined")}}).
Examples
See the example for {{domxref("element.setCapture()")}}.
Specifications
Not part of any specification.
Browser compatibility
{{Compat}}
See also
- {{domxref("element.setCapture()")}}