DOM

settings_applicationsEventTarget  >   settings_applicationsNode  >   settings_applicationsElement

DOM

Editing
  • bug_report

Eventfocus

insert_drive_fileFocusEventinterfaceopen_in_new
FocusEvent interface는 Element에서 focus 이벤트 타입으로 구현된다.

Element의 focus는 FocusEvent interface의 이벤트 타입이고 이벤트 리스너에서 사용된다.

기본 개요

요소(element)가 포커스(focus)를 받을 때 발생한다.

설명

비슷한 focusin 이벤트와의 주요 차이점은 버블링(bubbing)이다. focus 이벤트는 버블링이 발생하지 않는다.

구문

형식
element.addEventListener("focus", function() { });

명세

typefocus
bubblesno
cancelableno
targetElement, Window
handleronfocus

버전 명세

HTML Standard API
#handler-onfocus

지원 웹브라우저