javascript - Exactly when does an IFRAME onload event fire? -
What HTML has been downloaded completely, or when all dependent elements are loaded then the IELF event of IFRAME In the fire? (CSS / JS / IMG)
latter: & lt; Body onload = When only all the dependent elements (CSS / JS / IMG) are loaded, the fire goes.
If you want to run JavaScript code when the HTML is loaded, then do it at the end of your HTML:
load and ready (supports both jQuery) here
Comments
Post a Comment