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.

pointerLockElement property

Retrieves the target element for mouse events under pointer lock state. Returns null if the document is not currently in pointer lock state.

Syntax


element = document.pointerLockElement

Property values

Type: Element

Element under pointer lock

See also

document
requestPointerLock
exitPointerLock

 

 

Show:
© 2017 Microsoft