GlobalEventHandlers.ongotpointercapture
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.
La propriété ongotpointercapture
du mixin GlobalEventHandlers
est un gestionnaire d'évènement qui traite les évènements de type gotpointercapture
.
Syntaxe
js
target.ongotpointercapture = functionRef;
Valeur
functionRef
est un nom de fonction ou une expression fonction. La fonction accepte un objet FocusEvent
en tant qu'unique argument.
Example
js
function overHandler(event) {
// Obtient le gestionnaire de type "gotpointercapture" de la cible de l'événement
let gotCaptureHandler = event.target.ongotpointercapture;
}
function init() {
let el = document.getElementById("target");
el.ongotpointercapture = overHandler;
}
Spécifications
Specification |
---|
Pointer Events # the-gotpointercapture-event |
Pointer Events # dom-globaleventhandlers-ongotpointercapture |
Compatibilité des navigateurs
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
gotpointercapture event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
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.
Voir aussi
- L'évènement
Document: gotpointercapture
- L'évènement
Element: gotpointercapture
Element.setPointerCapture()