Reputation: 6449
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
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