この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The exitPointerLock asynchronously releases a pointer lock previously requested through Element.requestPointerLock.

To track the success or failure of the request, it is necessary to listen for the pointerlockchange and pointerlockerror events.

Syntax

document.exitPointerLock();

Specifications

Specification Status Comment
Pointer Lock
The definition of 'Document' in that specification.
Candidate Recommendation Extend the Document interface

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support

Yes

Yes webkit

Yes

50

Yes moz

? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support

Yes

Yes webkit

Yes

Yes webkit

Yes

50

Yes moz

? ? ?

See also

ドキュメントのタグと貢献者

最終更新者: fscholz,