Is there any event in Internet Explorer that fires when the DOM changes? For example:
document.attachEvent("ondocumentchange", function () { alert("you've just changed DOM!"); });
And when I do:
document.appendChild(document.createElement("img"));
A window with the text "you just changed the DOM!" appears.
I am trying to emulate "advanced" CSS selectors (like +,>, [attr]) in IE6 using Javascript. However, to work correctly with dynamic content, they must be recalculated after each change to the document.
javascript internet-explorer events
Jakub kulhan
source share