How can I detect when the iframe content has changed and do something upon that change pseudo code below
$('#waframe').contents().change(function(){ //do stuff });
Well, the browser seems to generate a "load" event on an <iframe>
element in the context of the containing page. The "load" fires when the "src" is changed; not sure whether it fires when the iframe changes itself.
edit: yes it does seem to fire when the page reloads "internally"
Thus you might try:
$('iframe#yourId').load(function() { alert("the iframe has been loaded"); });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With