event.targetの読み方
javascriptで利用されるメソッドの1つである「event.target」の読み方を掲載してます。
読み⽅
「イベント・ターゲット」と読みます。
英訳
「target」は「目標・対象」という意味があります。
event.targetとは
javascriptで、配列を結合して文字列として使用するメソッドとなります。
/** html **/
<button onclick="hoge();" id="btn">
実行
</button>
/** js **/
function hoge() {
var elm = event.target;
// id取得
console.log(event.target.id); // btn
}
-
前の記事
Yandex Browserの読み方 2020.10.27
-
次の記事
MessageBoxButtons.AbortRetryIgnoreの読み方 2020.10.28