Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите сделать эту работу!
Вы можете также прочитать эту статью на English (US).
The ongotpointercapture
property of the GlobalEventHandlers
mixin is an EventHandler
that processes gotpointercapture
events.
Syntax
target.ongotpointercapture = functionRef;
Value
functionRef
is a function name or a function expression. The function receives a FocusEvent
object as its sole argument.
Example
function overHandler(event) { // Determine the target event's gotpointercapture handler let gotCaptureHandler = event.target.ongotpointercapture; } function init() { let el = document.getElementById('target'); el.ongotpointercapture = overHandler; }
Specifications
Specification | Status | Comment |
---|---|---|
Pointer Events – Level 2 The definition of 'onlostpointercapture' in that specification. |
Working Draft |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic support | Chrome Full support 57 | Edge ? | Firefox Full support 59 | IE ? | Opera Full support 44 | Safari ? | WebView Android Full support 57 | Chrome Android Full support 57 | Edge Mobile ? | Firefox Android No support No | Opera Android Full support 44 | Safari iOS ? | Samsung Internet Android ? |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown