Element.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.
ongotpointercapture
es una propiedad event handler
de la interfaz Element
que devuelve el controlador de eventos (función) para el evento tipo gotpointercapture
.
Síntaxis
js
var gotCaptureHandler = target.ongotpointercpature;
Valor de Retorno
gotCaptureHandler
-
El controlador de eventos gotpointercapture para el elemento target.
Ejemplo
js
<html>
<script>
function overHandler(ev) {
// Determine the target event's gotpointercapture handler
var gotCaptureHandler = ev.target.ongotpointercapture;
}
function init() {
var el=document.getElementById("target");
el.onpointerover = overHandler;
}
</script>
<body onload="init();">
<div id="target"> Touch me ... </div>
</body>
</html>
Especificaciones
Specification |
---|
Pointer Events # the-gotpointercapture-event |
Pointer Events # dom-globaleventhandlers-ongotpointercapture |
Compatibilidad con navegadores
BCD tables only load in the browser