Kar
Kar

Reputation: 6345

Detecting DOM change events

Is there a way to detect DOM change events? whether it be text replacement, moving a node, removing or adding a new node, etc.

Upvotes: 2

Views: 3789

Answers (1)

Ansel Santosa
Ansel Santosa

Reputation: 8444

I think what you're looking for is DOMSubtreeModified

Edit: upon further inspection this and other MutationEvents have been deprecated by the W3C but there doesn't appear to be a replacement until DOM Level 4

See: "Why is the DOMSubtreeModified event deprecated in DOM level 3?"

Long story short, DOMSubtreeModified will still work and there is no reasonable alternative implemented across stable browsers.

Upvotes: 2

Related Questions