DOM

settings_applicationsEvent

DOM

Editing
  • account_tree
  • bug_report

Eventfullscreenchange

지정 요소가 전체 화면 모드로 전환되거나 해제될 때 발생한다.

설명

두 건의 fullscreenchange 이벤트가 발생한다. 첫 번째는 대상 요소에게로 두 번째는 대상 요소를 소유한 문서(document)로 전송된다.

요소가 전체 화면 모드로 전환되었는지 또는 종료되었는지를 확인하려면 Document.prototype.fullscreenElement 프로퍼티의 값을 학인한다. null이면 전체 화면 모드를 종료한 경우이고 그렇지 않다면 전체 화면 모드가 시작된 것이다.

구문

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

명세

typefullscreenchange
bubblesyes
cancelableno
targetElement
handleryes

버전 명세

지원 웹브라우저