releaseEvents method (document, window)
Stops capturing the specified events that was previously set by the captureEvents method.
The support for the captureEvents and releaseEvents methods has been removed in Firefox 3. Although the captureEvents and releaseEvents methods are supported but they are not implemented in Opera, Google Chrome and Safari.For event capturing, use the addEventListener (Firefox, Opera, Google Chrome and Safari) and setCapture (Internet Explorer) methods instead.
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?
Supported by objects:
User Contributed Comments