How to start a JS code when the whole page has loaded including images (real on complete)
Posted
by Pentium10
on Stack Overflow
See other posts from Stack Overflow
or by Pentium10
Published on 2010-04-12T10:54:15Z
Indexed on
2010/04/12
11:03 UTC
Read the original article
Hit count: 193
I want to execute a script after the whole page has loaded, when it's complete.
The current way is:
window.onload=document.getElementById('loaded').value=1;
Which is not good, as some images are still in load, and the page has not completed loading truly. What I am doing wrong?
© Stack Overflow or respective owner