The onload event occurs immediately after a page or an image is loaded.
onload事件当一个页面或是一张图片加载完成时被触发。
onload="所要执行的代码"
Parameter
参数
Description
注释
SomeJavaScriptCode
所要执行的代码
Required. Specifies a JavaScript to be executed when the event occurs.
必选项。当事件触发时所要执行的代码。

Supported by the following HTML tags:
所支持的HTML标签:

<body>, <frame>, <frameset>, <iframe>, <img>, <link>, <script>

Supported by the following JavaScript objects:
所支持的JavaScript对象:

image, layer, window

Example
实例

In this example the text "Page is loaded" will be displayed in the status bar:
在下面的例子中,页面加载完成时页面状态栏将出现“页面已加载”:

<html>
<head>
<script type="text/javascript">
function load()
{
window.status="页面已加载"
}
</script>
</head>
<body onload="load()">
</body>
</html>

最新文章

  1. boost asio sync
  2. windows下CMake使用图文手册 Part 2
  3. 不就是抽个血吗,至于么-jQuery,Linux完结篇
  4. Kooboo中如何切换数据库(注意:如果切换数据库,需要Kooboo中没有一个website 否则会报错数据库中没有表之类的)
  5. android 在activity中改变标题栏的标题 tabActivity的标题改变
  6. hbulider 快捷键以及常用
  7. HTML里面Textarea换行总结
  8. php 写model层
  9. mvc初学controller参数传递感想
  10. java 中打印调用栈
  11. SQL Server中的临时表和表变量
  12. ajax bookstrap美化网页,并实现页面的加载,删除与查看详情
  13. 如何修改chrome记住密码后自动填充表单的黄色背景 ?
  14. 入坑MATLAB必会的吐血总结
  15. input子系统学习笔记六 按键驱动实例分析下【转】
  16. 干货分享:互联网运营 学习SEO从零开始 SEO深度解析学习笔记
  17. 使用CloneDB克隆数据库
  18. [JZOJ5984] 仙人掌
  19. linux 源码安装 mono
  20. 使用JQuery提交表单的两种方式选择

热门文章

  1. 回顾Quick Sort(Javascript 实现)
  2. 浅析 var that = this;
  3. LookAround开元之旅(持续更新中...)
  4. linux各文件夹的作用(转)
  5. PHP 根据两点的经纬度计算距离
  6. POJ 3162 Walking Race (树的直径,单调队列)
  7. struts2默认拦截器defaultStack
  8. ajax的traditional属性
  9. SayLove微信小程序
  10. 模板类 vector