Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
184
rated 0 times [  190] [ 6]  / answers: 1 / hits: 24602  / 15 Years ago, tue, march 24, 2009, 12:00:00

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 />

More From » html

 Answers
25

'onload' is supported by the following HTML tags:




<body>, <frame>, <frameset>, <iframe>, <img>, <link>, <script>




And the following Javascript objects:




image, layer, window



[#99799] Wednesday, March 18, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
austynp

Total Points: 505
Total Questions: 118
Total Answers: 106

Location: Tajikistan
Member since Sun, Aug 29, 2021
3 Years ago
austynp questions
;