Is there a simple way to know when the DOM has been changed ?
Is there any built-in JavaScript/jQuery event/function for this ?
If you must detect changes you can check the DOM mutation events. The DOM events wikipedia page lists them all. However you should know that they are not supported in Internet Explorer and may fire too often in the browsers that support them. A brute force approach is to use setTimeout and check for changes by yourself.
setTimeout
My experience shows though that the need for DOM change notifications can be avoided. Could you give more details about your exact requirements?
1.4m articles
1.4m replys
5 comments
57.0k users