Removes the mouse capture from an object belonging to the current document.
Syntax
HRESULT releaseCapture(void);
Return Value
Returns S_OK if the function was bound successfully, or an error code otherwise.
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 or switching focus to another application or browser window.