HTML DOM 포커스 이벤트
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 |