Document: releaseCapture() method
{{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
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()")}}
这篇文档对你有帮助吗?
谢谢你的反馈!