We know the onChange event only works for form fields. Is there any way to monitor the change of innerHTML of a specific DOM element other than form fields?
A:
No you can't. Its supposed that you know when something in your own page changes:) Can you give more details? maybe there is another way of doing what you need.
Quamis
2010-09-09 08:05:15
I am trying to "inject" javascript code (via bookmarklet) into a webpage that I have no control on. When the innerHTML of the DOM element with id="content_wrapper" is changed, another event will be fired.
Ethan
2010-09-09 08:22:32
A:
you can try using DOMNodeInserted if that does the trick for you
update: another useful link: http://help.dottoro.com/ljmcxjla.php
koko
2010-09-09 08:09:59