This question has already been answered:
- Event changes the contents of the tag 2 response
I have a block: <div class="dataBlock"></div> .
How to create an event that will always trigger when something changes inside this block (and we cannot add any callback to the script that directly changes the contents of the .dataBlock )?
You need to do something like .addEventListener("myEvent", ...) and, when something has changed, output some kind of alert() .
Is it possible?