Categories : PHP
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;

var observer = new MutationObserver(function (mutations, observer) {
	console.log(mutations, observer);
	// write code here
});


observer.observe(document, {
	subtree: true,
	attributes: true
});

Leave a Reply

Your email address will not be published.