if you want to add an event listener in jQuery, this is not a method, the corect path should always be:
$(document or window).bind( your_event_name, function(event) { your_callback });
with this in mind you can write:
$(document).bind('DOMNodeInserted', function(event) {
alert('inserted ' + event.target.nodeName +
' in ' + event.relatedNode.nodeName);
});
or do what you need to do every time a node is inserted into the DOM.
, addEventListener, javascript, jQuery.
document.addEventListener("DOMNodeInserted", function () {
}, false);
: jQuery 1.7, .on. http://api.jquery.com/on/
, ( ) , , node DOMNodeInserted ( node) node DOMNodeInserted...
, ...
span ...