This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

requestPointerLock

Summary

requestPointerLock lets you lock the target of mouse events to a single element while hiding the cursor.

Method of dom/Elementdom/Element

Syntax

 element.requestPointerLock();

Return Value

No return value

Related specifications

Pointer Lock
W3C Working Draft