Mixin and Primitive Interface

settings_applicationsWindowEventHandlers

Mixin and Primitive Interface

Editing
  • settings_backup_restore
  • bug_report

Event handleronoffline

insert_drive_fileEventinterfaceopen_in_new
Event interface의 offline 이벤트는 WindowEventHandlers의 onoffline 핸들러에 의해 구현된다.

WindowEventHandlers의 onoffline는(은) Event interface의 offline 이벤트 타입의 핸들러이고 이벤트 리스너로 사용된다.

기본 개요

구문

형식
window.addEventListener("offline", function() {});
크롬 웹브라우저 개발자 도구에서 인위적으로 오프라인 모드로 설정하면 이벤트가 발생한다.

명세

typeoffline
bubblesno
cancelableno
targetWindow
handleryes

지원 웹브라우저