Element.onlostpointercapture
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.
onlostpointercapture
es una propiedad event handler
de la interfaz Element
que devuelve el controlador de eventos (función) para el evento tipo lostpointercapture
.
Síntaxis
js
var lostCaptureHandler = target.onlostpointercpature;
Valor de Retorno
lostCaptureHandler
-
El controlador de eventos lostpointercapture para el elemento
target
.
Ejemplo
js
<html>
<script>
function overHandler(ev) {
// Determine the target event's lostpointercapture handler
var lostCaptureHandler = ev.target.onlostpointercapture;
}
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-lostpointercapture-event |
Pointer Events # dom-globaleventhandlers-onlostpointercapture |
Compatibilidad con navegadores
BCD tables only load in the browser