0

I know there is a way to detect changes in HTML attributes, DOM node subtree, etc. However, I could not find a way to detect a change in the node property, such as offsetParent of the certain div. This information tells me whether that div is displayed on the screen. So, if offsetParent has the value of null, it means that div is stil not visible on the page. I have tried with MutationObserver, Object.prototype.watch, but with no success.

Does enyone find the solution? Thanks.

akelec
  • 3,797
  • 3
  • 41
  • 39
  • 1
    Possible duplicate of [How to detect change in a property of DOM?](https://stackoverflow.com/questions/35787689/how-to-detect-change-in-a-property-of-dom) – Matt Oct 04 '18 at 14:03
  • No, it isn't a duplicate. There is an important difference. Other questions do not address changes in node properties. – akelec Oct 04 '18 at 20:47

0 Answers0