window属性:onclose

2018-04-26 11:47 更新

onclose属性

onclose属性表示关闭事件发送给window的事件处理程序。(不适用于Firefox 2或Safari)

onclose属性语法

window.onclose = funcRef;

参数

  • funcRef:是对一个函数的引用。

onclose属性示例

window.onclose = resetThatServerThing;

规范

规范状态注释
HTML Living Standard
该规范中'onclose'的定义。
Living Standard
 

浏览器兼容性

我们正在将兼容性数据转换为机器可读的JSON格式。 

  • 电脑端
特征Chrome
Firefox(Gecko)
Internet Explorer
Opera
Safari(WebKit)
基本支持支持不支持 
  • 移动端

特征AndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
基本支持?支持支持????不支持
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号