DOM

HTMLMediaElement:abort イベント

 編集:2022.11.03 by T.A.

[Edge]。→

mdn: リソースが完全に読み込まれなかったが、それがエラーの結果ではなかった場合に発行されます。

バブリング なし
キャンセル可能 いいえ¶
インターフェイス Event
イベント ハンドラー プロパティ onabort

GlobalEventHandlers でイベント ハンドラーが定義されている。

HTML:

<VIDEO id=IdTest src="../../Sample/Eizou_M.mp4" controls style="width:200px"></VIDEO>

JavaScript:

function Job(eve){   //abort イベントの処理:
  D=eve;
  alert("読み込みできませんでした");
}
IdTest.onabort=Job;  //イベント割り当て。
IdTest.src="../../Sample/Eizou_M.mpg";  //再生できないファイルを指定。

得られた内容:D

=[object]:[object Event]
isTrusted=[boolean]:true
type=[string]:abort
target=[object]:[object HTMLVideoElement]
currentTarget=[object]:null
eventPhase=[number]:0
bubbles=[boolean]:false
cancelable=[boolean]:true
defaultPrevented=[boolean]:false
composed=[boolean]:false

cancelable=[boolean]:true となっているが。


テスト