GlobalEventHandlers.ongotpointercapture
ongotpointercapture
は GlobalEventHandlers
ミックスインのプロパティで、 gotpointercapture
イベントを処理する event handler
です。
構文
target.ongotpointercapture = functionRef;
値
functionRef
は、関数名または関数式です。 関数は PointerEvent
オブジェクトを唯一の引数として受け取ります。
例
function overHandler(event) {
// ターゲットイベントの gotpointercapture ハンドラを決定します
let gotCaptureHandler = event.target.ongotpointercapture;
}
function init() {
let el = document.getElementById('target');
el.ongotpointercapture = overHandler;
}
仕様書
仕様書 | 状態 | 備考 |
---|---|---|
Pointer Events – Level 2 ongotpointercapture の定義 |
勧告 |
ブラウザーの互換性
BCD tables only load in the browser