My immediate thought is that you could md5(innerHTML onload) your div's and store the reult (as a JavaScript variable). Then, whenever you need to know if the div's contents have changed, compare md5(current innerHTML) with the stored md5.
Md5 would be a cheap way to store a representation of innerHTML without needing to store inneHTML itself. Even cheaper would be innerHTML.length but a subsequent comparison would be significantly less reliable unless you can make length assumptions about your div's contents.
Of course, with these techniques no event will fire as it would if onchange were available so you would need to code it somehow differently.
If you don't know what md5 is, then try an internet search (Google, Alta Vista etc).
Airshow
Reputation Points: 318
Solved Threads: 358
WiFi Lounge Lizard
Offline 2,526 posts
since Apr 2009