By aziz punjani


2011-10-07 20:48:14 8 Comments

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 body. I don't have access to the script and I don't know when the div has been inserted. I was wondering if there's a DOM mutation event that I can add a listener for, to know when an element has been inserted. I know I can use a timer to periodically check for the insertion but, I don't really like the overhead that this would impose.

Related Questions

Sponsored Content

97 Answered Questions

[SOLVED] How can I remove a specific item from an array?

  • 2011-04-23 22:17:18
  • Walker
  • 7143849 View
  • 8659 Score
  • 97 Answer
  • Tags:   javascript arrays

66 Answered Questions

[SOLVED] How do I check whether a checkbox is checked in jQuery?

59 Answered Questions

[SOLVED] How do I check if an element is hidden in jQuery?

46 Answered Questions

[SOLVED] How do I remove a property from a JavaScript object?

86 Answered Questions

[SOLVED] How do JavaScript closures work?

61 Answered Questions

[SOLVED] How do I include a JavaScript file in another JavaScript file?

28 Answered Questions

[SOLVED] What does "use strict" do in JavaScript, and what is the reasoning behind it?

3 Answered Questions

41 Answered Questions

[SOLVED] Setting "checked" for a checkbox with jQuery

17 Answered Questions

[SOLVED] How to decide when to use Node.js?

Sponsored Content