Is there a way to detect DOM change events? whether it be text replacement, moving a node, removing or adding a new node, etc.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think what you’re looking for is
DOMSubtreeModifiedEdit: upon further inspection this and other
MutationEventshave been deprecated by the W3C but there doesn’t appear to be a replacement until DOM Level 4See: “Why is the DOMSubtreeModified event deprecated in DOM level 3?”
Long story short,
DOMSubtreeModifiedwill still work and there is no reasonable alternative implemented across stable browsers.