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()
.
document.releaseCapture()
Once mouse capture is released, mouse events will no longer all be directed to the element on which capture is enabled.
See the example for element.setCapture()
.
Based on Internet Explorer's implementation.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/document/releaseCapture