DOM

settings_applicationsGlobalEventHandlers

DOM

  • account_tree
  • bug_report

Event handleronfocus

insert_drive_fileFocusEventinterfaceopen_in_new
FocusEvent interface의 focus 이벤트는 GlobalEventHandlers의 onfocus 핸들러에 의해 구현된다.

GlobalEventHandlers의 onfocus는(은) FocusEvent interface의 focus 이벤트 타입의 핸들러이고 이벤트 리스너로 사용된다.

onfocus는(은) GlobalEventHandlers Mixin이 정의하고 HTMLElement, Document, Window, WorkerGlobalScope 인터페이스에서 구현한다.

기본 개요

설명

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

구문

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

명세

typefocus
bubblesno
cancelableno
targetElement, Window
handleronfocus

지원 웹브라우저