js changes to DOM
I am searching for a way to get notified when a js is changing/mutating the page's DOM, and know which js caused the change. How can I achieve this? Is there a way to do so using Jav开发者_如何学Goa? In JavaScript? Any other way? Thanks, Inbar.
You want to add an event listener to listen for Mutation events.
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-mutationevents
Update: I see from other answers that there might be problems with IE support. See Detect changes in the DOM
精彩评论