jquery listener on page change code example
Example: jquery on dom change
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});