GlobalEventHandlers.onclose
Обработчик события для событий закрытия, отправляется в окно. (Не доступен в Firefox 2 или Safari)
Синтаксис
window.onclose = funcRef;
Параметры
funcRef
является ссылкой на функцию.
Пример
window.onclose = resetThatServerThing;
Спецификация
Спецификация | Статус | Коментарий |
---|---|---|
HTML Living Standard Определение 'onclose' в этой спецификации. |
Живой стандарт |
Совместимость с браузерами
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
свойство | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
базоввая поддержка | (Да) | ? | ? | ? | Нет |
Feature | Android | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|---|
базоввая поддержка | ? | (Да) | (Да) | ? | ? | ? | ? | Нет |