JavaScript Indexing

settings_applicationsEventTarget  >   settings_applicationsWindow

{object_name}

Record

Eventbeforeunload

Details

window, document, resources가 unload되려고 할 때 발생한다.

구문

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

명세

typebeforeunload
handleronbeforeunload

지원 웹브라우저