GlobalEventHandlers.onlostpointercapture

我們的志工尚未將本文翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
您也可以閱讀本文的 English (US) 版本。

The onlostpointercapture EventHandler property of the GlobalEventHandlers interface returns the event handler (function) for the lostpointercapture event type.

Syntax

window.onlostpointercapture = functionReference

Example

function overHandler(ev) {
 // Determine the target event's lostpointercapture handler
 var lostCaptureHandler = ev.target.onlostpointercapture;
}

function init() {
 var el = document.getElementById('target');
 el.onlostpointercapture = overHandler;
}

Specifications

Specification Status Comment
Pointer Events – Level 2
The definition of 'onlostpointercapture' in that specification.
Working Draft  

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 57Edge ? Firefox Full support 59IE ? Opera Full support 44Safari ? WebView Android Full support 57Chrome Android Full support 57Edge Mobile ? Firefox Android No support NoOpera Android Full support 44Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

文件標籤與貢獻者

此頁面的貢獻者: chrisdavidmills, fscholz, david_ross, jpmedley
最近更新: chrisdavidmills,