I'm familiar with the typical use of onload
, as in the following:
<body onload="alert('Hello, World!');">
...
</body>
What are all the html elements that fire a load event? (thus executing javascript supplied in an onload attribute)
For example, img
is one such tag that will execute the javascript supplied in an onload
attribute when some.png
has loaded:
<img onload="someImgLoaded()" src="some.png" />
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…