Anton Raskin
Anton Raskin

Reputation: 143

Is there an event checking if the 'innerText' property of HtmlElement has changed?

I'm running c#'s WebBrowser object on html and getting the innerText property for an HtmlElement. Now I want to check when this innerText is changed. Is there some onChanged event that does that?

Upvotes: 0

Views: 380

Answers (2)

Avinash patil
Avinash patil

Reputation: 1799

i found this on stackoverflow itself innerText Changed event this might help you. if you want to try MutationObserver. try this also.

Upvotes: 0

A J
A J

Reputation: 2140

A quick google gave me the following answer

$('#div').bind('DOMNodeInserted', function(event) {
   alert('change');
});

Check out this fiddle.

Hope this helps.

Upvotes: 2

Related Questions