Bruno
Bruno

Reputation: 6449

JavaScript: Working with Frames/iFrames in IE

I want to execute JavaScript code once my iFrames or Frames load. document.onReady executes before the frames are rendered on the pages so I cannot use that. Any suggestions?

I found a 3rd party plugin called FrameReady but it does not work in IE.

Upvotes: 0

Views: 416

Answers (1)

airportyh
airportyh

Reputation: 22668

Try waiting for window's load event, it waits until all iframes have loaded.

$(window).load(function(){
    // images and iframes have loaded
})

Upvotes: 2

Related Questions