我知道 img
body
和 iframe
允许您将 onload=
添加到标签并且必须执行。还有哪些其他标签支持 onload
操作?您知道所有标签的列表和支持的操作吗?
最佳答案
html4 规范仅提及body
和frameset
:http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.3
我认为这取决于浏览器。
关于javascript - 哪些html标签支持onload javascript事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4272002/