Does the IFRAME’s onload event fire when the HTML has fully downloaded, or only when all dependent elements load as well? (css/js/img)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The latter:
<body onload=fires only when all dependent elements (css/js/img) have been loaded as well.If you want to run JavaScript code when the HTML has been loaded, do this at the end of your HTML:
Here is a relevant e-mail thread about the difference between load and ready (jQuery supports both).