GlobalEventHandlers.ongotpointercapture
La propriété
ongotpointercapture
du mixin GlobalEventHandlers
est un EventHandler
(en-US) qui traite les évènements de type gotpointercapture
.Syntaxe
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
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
Spécification | Status | Commentaire |
---|---|---|
Pointer Events – Level 2 La définition de 'onlostpointercapture' dans cette spécification. |
Recommendation |
Compatibilité des navigateurs
BCD tables only load in the browser
Voir aussi
- L'évènement
Document: gotpointercapture
- L'évènement
Element: gotpointercapture
Element.setPointerCapture()