Web Platform Atlas
EN⚡RUUA⚡DE⚡FR⚡ES⚡PL⚡PT⚡ZH⚡JA⚡
Каталог / UI Events / unload

3.2.3.2 unload

Статический предпросмотр (RU): для MDN, WPT, глоссария и BYOK-перевода откройте интерактивный Атлас.
⚡ Открыть главу в Атласе

3.2.3.2. unload

Тип

unload

Интерфейс

UIEvent if generated from a user interface, Event otherwise.

Синхронность / Асинхронность

Синхронно

Всплытие

No

Доверенные цели

Window, Document, Element

Отменяемость

No

Действие по умолчанию

Нет

Контекст (доверенные события)

Event.target : common object whose contained resources have been removed

UIEvent.view : Window

UIEvent.detail : 0

A user agent MUST dispatch this event when the DOM Implementation removes from the environment the resource (such as the document) or any dependent resources (such as images, style sheets, scripts). The document MUST be unloaded after the dispatch of this event type. If this event type is dispatched, implementations are REQUIRED to dispatch this event at least on the Document node.