web api instance method
Document: exitPointerLock() method
The exitPointerLock() method of the Document interface asynchronously releases a pointer lock previously requested through requestPointerLock.
[!NOTE] While the
exitPointerLock()method is called on the document, therequestPointerLock()method is called on an element.
To track the success or failure of the request, it is necessary to listen for the pointerlockchange and pointerlockerror events.
Syntax
exitPointerLock()
Parameters
None.
Return value
None (undefined).
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.