I\'m working on an Extension in Chrome, and I\'m wondering: what\'s the best way to find out when an element comes into existence? Using plain javascript, with an interval t
You can listen to DOMNodeInserted or DOMSubtreeModified events which fire whenever a new element is added to the DOM.
DOMNodeInserted
DOMSubtreeModified
There is also LiveQuery jQuery plugin which would detect when a new element is created:
$("#future_element").livequery(function(){ //element created });