当在window对象上触发close事件时的事件处理器 (在Firefox 2 或 Safari中不可用)
语法
window.onclose = funcRef;
参数
funcRef
是一个function的引用。
示例
window.onclose = resetThatServerThing;
规范
规范 | 状态 | 文档 |
---|---|---|
WHATWG HTML Living Standard onclose |
Living Standard |
当在window对象上触发close事件时的事件处理器 (在Firefox 2 或 Safari中不可用)
window.onclose = funcRef;
funcRef
是一个function的引用。window.onclose = resetThatServerThing;
规范 | 状态 | 文档 |
---|---|---|
WHATWG HTML Living Standard onclose |
Living Standard |
GlobalEventHandlers
onabort
onblur
onchange
onclick
onclose
oncontextmenu
ondblclick
onerror
onfocus
oninput
onkeydown
onkeypress
onkeyup
onload
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onpointercancel
[我来译!]onpointerdown
[我来译!]onpointerenter
[我来译!]onpointerleave
[我来译!]onpointermove
[我来译!]onpointerout
[我来译!]onpointerover
[我来译!]onpointerup
[我来译!]onreset
[我来译!]onresize
onscroll
onselect
onselectstart
[我来译!]onsubmit
ontouchcancel
[我来译!]ontouchmove
ontouchstart
[我来译!]abort
autocomplete
autocompleteerror
DOMContentLoaded
afterprint
afterscriptexecute
beforeprint
beforescriptexecute
beforeunload
blur
cancel
change
click
close
connect
contextmenu
error
focus
hashchange
input
invalid
languagechange
load
loadend
loadstart
message
offline
online
open
pagehide
pageshow
popstate
progress
readystatechange
reset
select
show
sort
storage
submit
toggle
unload
loadeddata
loadedmetadata
canplay
playing
play
canplaythrough
seeked
seeking
stalled
suspend
timeupdate
volumechange
waiting
durationchange
emptied
unhandledrejection
rejectionhandled
BeforeUnloadEvent
DOMStringMap
ErrorEvent
HTMLAnchorElement
HTMLAreaElement
HTMLAudioElement
HTMLBRElement
HTMLBaseElement
HTMLBaseFontElement
HTMLBodyElement
HTMLButtonElement
HTMLCanvasElement
HTMLContentElement
HTMLDListElement
HTMLDataElement
HTMLDataListElement
HTMLDialogElement
HTMLDivElement
HTMLDocument
HTMLElement
HTMLEmbedElement
HTMLFieldSetElement
HTMLFormControlsCollection
HTMLFormElement
HTMLFrameSetElement
HTMLHRElement
HTMLHeadElement
HTMLHeadingElement
HTMLHtmlElement
HTMLIFrameElement
HTMLImageElement
HTMLInputElement
HTMLIsIndexElement
HTMLKeygenElement
HTMLLIElement
HTMLLabelElement
HTMLLegendElement
HTMLLinkElement
HTMLMapElement
HTMLMediaElement
HTMLMetaElement
HTMLMeterElement
HTMLModElement
HTMLOListElement
HTMLObjectElement
HTMLOptGroupElement
HTMLOptionElement
HTMLOptionsCollection
HTMLOutputElement
HTMLParagraphElement
HTMLParamElement
HTMLPictureElement
HTMLPreElement
HTMLProgressElement
HTMLQuoteElement
HTMLScriptElement
HTMLSelectElement
HTMLShadowElement
HTMLSourceElement
HTMLSpanElement
HTMLStyleElement
HTMLTableCaptionElement
HTMLTableCellElement
HTMLTableColElement
HTMLTableDataCellElement
HTMLTableElement
HTMLTableHeaderCellElement
HTMLTableRowElement
HTMLTableSectionElement
HTMLTemplateElement
HTMLTextAreaElement
HTMLTimeElement
HTMLTitleElement
HTMLTrackElement
HTMLUListElement
HTMLUnknownElement
HTMLVideoElement
HashChangeEvent
History
ImageData
Location
MessageChannel
MessageEvent
MessagePort
Navigator
NavigatorGeolocation
NavigatorID
NavigatorLanguage
NavigatorOnLine
NavigatorPlugins
PageTransitionEvent
Plugin
PluginArray
PopStateEvent
PortCollection
PromiseRejectionEvent
RadioNodeList
Transferable
ValidityState
Window
WindowBase64
WindowEventHandlers
WindowTimers