releaseEvents method (document, window)
Stops capturing the specified events that was previously set by the captureEvents method.
addEventListener (Firefox, Opera, Google Chrome and Safari) and setCapture (Internet Explorer) methods instead.For event capturing, use the
You can find the related objects in the Supported by objects section below.
Required. Integer that specifies the event types to stop capturing.
Predefined constants are available for the possible values of this parameter, in the scope of the Event interface. For further details, see the page for the <a href='/lagstsiq.php/#Event'>Event</a> interface. The value can be any combination of the following integer constants with the bitwise OR operator (the value of a predefined constant appears in parentheses after the constant in hexadecimal form):
This method has no return value.
Example HTML code 1:
This example illustrates the use of the releaseEvents method to capture the onclick event before it reaches the button:
Did you find this example helpful?
User Contributed Comments