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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You saved me! Thank you so much!!!!!