Created
June 10, 2014 14:59
-
-
Save simondahla/0c324ba8e6ed36055787 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myElement = document.getElementById('IDoftheDIV'); | |
if(window.addEventListener) { | |
// Normal browsers | |
myElement.addEventListener('DOMSubtreeModified', contentChanged, false); | |
} else | |
if(window.attachEvent) { | |
// IE | |
myElement.attachEvent('DOMSubtreeModified', contentChanged); | |
} | |
function contentChanged() { | |
// this function will run each time the content of the DIV changes | |
} |
good, It helped me.
It works...
...and if the the change your listening for involves a list being iterated, you get to watch it work ' + list.length-1 + "
times in rapid succession!
Thank you very much work fine and simple and clean
You saved me! Thank you so much!!!!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you. It helped me today!