DOM Mutation event in JQuery or vanilla Javascript

前端 未结 6 1090
独厮守ぢ
独厮守ぢ 2020-11-27 04:21

Are there any DOM mutation events in JQuery or in vanilla Javascript that fire cross browser?

To clarify, say I have a script on my page which inserts a div into the

6条回答
  •  天涯浪人
    2020-11-27 04:37

    There are some deprecated DOM mutation events, such as DOMNodeInserted and DOMNodeInsertedIntoDocument that still work for me in Chrome 14 and IE9.

    See an example at http://jsfiddle.net/Kai/WTJq6/

    See them all on the W3C draft at http://www.w3.org/TR/DOM-Level-3-Events/

提交回复
热议问题