Document.pointerLockElement

pointerLockElement 特性规定了如在鼠标事件中当目标被锁定时的元素集和。如果指针处于锁定等待中、指针没有被锁定,或者目标在另外一个文档中这几种情况,返回的值null。

语法

var element = document.pointerLockElement;

返回值

An Element or null.

特性

Specification Status Comment
Pointer Lock
Document
Candidate Recommendation Extend the Document interface

浏览器兼容

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) webkit (en-US) (Yes) (Yes) moz (en-US) ? ? ?
Unprefixed support (Yes) ? 50 (50)      
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? (Yes) ? ? ? ?

相关链接