Back to Content

Document: releaseCapture() method

files/en-us/web/api/document/releasecapture/index.md

latest757 B
Original Source

{{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()")}}