Skip to content
Advertisement

window.onload include images

Does window.onlaod include image load? or I must use another event for it?

I want use ajax call to get HTML document which contains images, but I want show this document when all images are loaded.

Advertisement

Answer

it does include all webpage’s resource’s load – more information here: https://developer.mozilla.org/en/docs/DOM/window.onload

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement