GlobalEventHandlers.ongotpointercapture

The ongotpointercapture property of the GlobalEventHandlers mixin is an event handler that processes gotpointercapture events.

Syntax

target.ongotpointercapture = 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 gotpointercapture handler
  let gotCaptureHandler = event.target.ongotpointercapture;
}

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

Specifications

Specification
Pointer Events
# dom-globaleventhandlers-ongotpointercapture

Browser compatibility

BCD tables only load in the browser

See also