This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

HTMLDialogElement: событие close

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since март 2022 г..

Обработчик события для событий закрытия, отправляется в окно.

Синтаксис

window.onclose = funcRef;

Параметры

  • funcRef является ссылкой на функцию.

Пример

js
window.onclose = resetThatServerThing;

Спецификации

Specification
HTML
# event-close

Совместимость с браузерами