We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

跳转到:

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

语法

window.onclose = funcRef;

参数

  • funcRef 是一个function的引用。

示例

window.onclose = resetThatServerThing;

规范

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

文档标签和贡献者

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