Mixin and Primitive Interface

settings_applicationsWindowEventHandlers

Mixin and Primitive Interface

Editing
  • settings_backup_restore
  • bug_report

Event handleronbeforeunload

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

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

기본 개요

구문

형식
window.addEventListener("beforeunload", function() { });

명세

typebeforeunload
bubblesno
cancelableno
targetwindow
handleryes

지원 웹브라우저