HTML DOM FocusEvent
FocusEventオブジェクト
要素がフォーカスを取得または失ったときに発生するイベントは、FocusEventオブジェクトに属します。
FocusEventのプロパティとメソッド
Property/Method | Description |
---|---|
relatedTarget | Returns the element related to the element that triggered the event |
継承されたプロパティとメソッド
FocusEventは、以下からすべてのプロパティとメソッドを継承します。
イベントタイプ
これらのイベントタイプは、FocusEventオブジェクトに属します。
Event | Description |
---|---|
onblur | The event occurs when an element loses focus |
onfocus | The event occurs when an element gets focus |
onfocusin | The event occurs when an element is about to get focus |
onfocusout | The event occurs when an element is about to lose focus |