Click to See Complete Forum and Search --> : does if(document.body) consider the embed/swf?

04-14-2007, 08:14 PM
If I had setInterval running in javascript that said if(document.body) would that only be true if the .swf had loaded too or just that the end of the embed tag was reached?
Note, I'm loading all .swf's with Geoff Stearns swfobject.

04-16-2007, 08:24 AM

I think document.body would be available pretty much instantly. If you need to know that the movie was fully loaded you could use an onload event -

window.onload = function() {
// when this gets called the movie is definitely loaded