Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

exitPointerLock method

Exits the document out of pointer lock state.

Syntax

document.exitPointerLock();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Standards information

Remarks

Also causes the pointerlockchange event to fire and the system mouse cursor to once again display.

Pointer lock state is also exited when the user presses the ESC key or when the browser window loses focus.

See also

document
requestPointerLock

 

 

Show:
© 2017 Microsoft