The setPointerCapture() method of the capture target of future pointer events.
setPointerCapture()
MDN Reference