什么html标签支持onload javascript事件? [英] What html tags support the onload javascript event?
本文介绍了什么html标签支持onload javascript事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道 img
body
和 iframe
允许你要添加 onload =
到标签并且必须执行。其他标签支持 onload
操作?你知道所有标签和支持行动的清单吗?解析方案
html4的规格只提及 body
和 frameset
: http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.3
我认为这取决于浏览器。
I know that img
body
and iframe
allow you to add onload=
to the tag and have to execute. What other tags support the onload
action? Do you know of a list of all tags and the actions the support?
解决方案
The specs for html4 only mention body
and frameset
: http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.3
I think it's browser dependent.
这篇关于什么html标签支持onload javascript事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文