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
});
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, Firefox 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");
});
I can't try IE at the moment.