GlobalEventHandlers.onlostpointercapture

The onlostpointercapture property of the GlobalEventHandlers mixin is an event handler that processes lostpointercapture events.

Syntax

target.onlostpointercapture = functionRef;

Value

functionRef is a function name or a function expression. The function receives a PointerEvent object as its sole argument.

Example

function overHandler(event) {
  // Determine the target event's lostpointercapture handler
  let lostCaptureHandler = event.target.onlostpointercapture;
}

function init() {
  let el = document.getElementById('target');
  el.onlostpointercapture = overHandler;
}

Specifications

Specification
Pointer Events
# dom-globaleventhandlers-onlostpointercapture

Browser compatibility

BCD tables only load in the browser

See also