asp.net.ph

Skip Navigation Links

releaseCapture Method

DHTML Methods


Removes mouse capture from the object in the current document.

Syntax

object.releaseCapture ( ) 
Return Value

No return value.

Remarks

For releaseCapture to have an effect, mouse capture must have been set through the setCapture method.

The releaseCapture method can be invoked off the document object. Doing so makes it unnecessary to determine which element has capture in order to programmatically release it. Other actions also release document capture, such as, displaying a modal dialog and switching focus to another application or browser window.

Example

The example illustrates how to invoke the releaseCapture method on the document object.

Sample Code


See Also

onlosecapture, setCapture



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note