Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

GlobalEventHandlers.onclose

当在window对象上触发close事件时的事件处理器 (在Firefox 2 或 Safari中不可用)

语法

window.onclose = funcRef;

参数

  • funcRef 是一个function的引用。

示例

window.onclose = resetThatServerThing;

规范

规范 状态 文档
WHATWG HTML Living Standard
onclose
Living Standard  

文档标签和贡献者

 此页面的贡献者: libmw
 最后编辑者: libmw,