Is there any event in Internet Explorer, that is fired whenever DOM is changed? For example:
document.attachEvent(\"ondocumentchange\", function () {
ale
You want to look at dom mutation events - see http://en.wikipedia.org/wiki/DOM_Events, and scroll down to the section on mutation events. Only problem is that support for these events is pretty sketchy, so be careful using them. Notably, a lack of support at all in IE or Opera. Firefox, Safari and Chrome seem to be the only ones.
Something like:
document.addEventListener("DOMSubtreeModified", function () {
alert("you've just changed DOM!");
});
According to http://www.quirksmode.org/dom/events/index.html for these kind of events you need to use addEventListener, not attachEvent. The event apparently bubbles, so that should be fine.