Get notified when certain DOM elements are created or removed.