Home  >  Article  >  Web Front-end  >  js的onload事件及初始化按钮事件示例代码_javascript技巧

js的onload事件及初始化按钮事件示例代码_javascript技巧

WBOY
WBOYOriginal
2016-05-16 17:21:241492browse

大家常见的肯定都是

这种用法.其实,不仅可以在body 上用它还支持多个HTML标签.用法如下:

onload事件当一个页面或是一张图片加载完成时被触发。

所支持的HTML标签:
, , ,
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn