The onunload event occurs when the user leaves the page.
onunload事件在用户离开页面时发生。
For example, the tag has the onload and onunload attributes.
例如,标记拥有onload和onunload属性。
OnUnload - This function is called just before a page is being switched out.
onUnload—此函数只在页面被关闭前调用。
Use a dijit's destroyRecursive() in the iWidget's onUnload() function to destroy it.
在 iWidget 的onUnload()函数中使用dijit 的destroyRecursive()来销毁它。
Keep in mind that the HTML 4.0-style attribute syntax, used for onunload in Listing 1, registers observers for the bubbling phase.
要记住,对于清单1中onunload所用的HTML 4.0风格的语法,观测者被注册到冒泡阶段。
In Listing 1, the target of the unload event is the body element, and the event handler is the bit of script inside the onunload attribute.
清单1中unload事件的目标是body元素,事件处理程序onunload属性中为数不多的那一点脚本。
In Listing 1, the target of the unload event is the body element, and the event handler is the bit of script inside the onunload attribute.
清单1中unload事件的目标是body元素,事件处理程序onunload属性中为数不多的那一点脚本。
应用推荐