JavaScript onload
2024-09-30 06:16:46
The onload event occurs immediately after a page or an image is loaded.
onload事件当一个页面或是一张图片加载完成时被触发。
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> <body onload="load()"> </html> |
最新文章
- boost asio sync
- windows下CMake使用图文手册 Part 2
- 不就是抽个血吗,至于么-jQuery,Linux完结篇
- Kooboo中如何切换数据库(注意:如果切换数据库,需要Kooboo中没有一个website 否则会报错数据库中没有表之类的)
- android 在activity中改变标题栏的标题 tabActivity的标题改变
- hbulider 快捷键以及常用
- HTML里面Textarea换行总结
- php 写model层
- mvc初学controller参数传递感想
- java 中打印调用栈
- SQL Server中的临时表和表变量
- ajax bookstrap美化网页,并实现页面的加载,删除与查看详情
- 如何修改chrome记住密码后自动填充表单的黄色背景 ?
- 入坑MATLAB必会的吐血总结
- input子系统学习笔记六 按键驱动实例分析下【转】
- 干货分享:互联网运营 学习SEO从零开始 SEO深度解析学习笔记
- 使用CloneDB克隆数据库
- [JZOJ5984] 仙人掌
- linux 源码安装 mono
- 使用JQuery提交表单的两种方式选择