Document.releaseCapture()

 

Releases mouse capture if it's currently enabled on an element within this document. Enabling mouse capture on an element is done by calling element.setCapture().

Syntax

JavaScript
document.releaseCapture()

Once mouse capture is released, mouse events will no longer all be directed to the element on which capture is enabled.

Example

See the example for element.setCapture().

Specifications

Based on Internet Explorer's implementation.

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/document/releasecapture

API DOM Method Reference Référence