Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can javascript listen for "onDomChange" on every Dom elements?

My question is somewhat weird, but can i add events for any DOM elements(div), like 'onHtmlChange', to be notified when that div has changed their content?

like image 468
Frangossauro Avatar asked Aug 24 '09 20:08

Frangossauro


1 Answers

Check out DOMNodeInserted and DOMNodeRemoved.

Ben Nadel recently blogged the following: Detecting When DOM Elements Have Been Removed With jQuery

like image 170
Sampson Avatar answered Oct 25 '22 19:10

Sampson