# JavaScript 窗口及输入输出 - 窗口对象的事件驱动

**URL:** <https://www.isharkfly.com/t/javascript/8665>\
**Category:** 前端\
**Created:** [October 27, 2012, 4:43pm UTC](https://www.isharkfly.com/t/javascript/8665 "2012-10-27T16:43:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 27, 2012, 4:43pm UTC](https://www.isharkfly.com/t/javascript/8665/1 "2012-10-27T16:43:33Z")

</div>

窗口对象主要有装入Web文档事件onload和卸载时onunload事件。

用于文档载入和停止载入时开始和停止更新文档。
