34
rated 0 times
[
40]
[
6]
/ answers: 1 / hits: 27833
/ 11 Years ago, tue, june 18, 2013, 12:00:00
It seems that $('#someIframe').load(function(){...})
won't fire if it is attached after the iframe has finished loading. Is that correct?
What I'd really like is to have a function that is always called once when or after an iframe has loaded. To make this clearer, here are two cases:
- Iframe hasn't loaded yet: run a callback function once it loads.
- Iframe has already loaded: run the callback immediately.
How can I do this?
More From » jquery