Detect changes with JavaScript on dom element/watermark

58 Views Asked by At

I am using a watermark, absolute positioned, displaying over multiple child elements. Can any changes to this watermark be detected such as removal from the dom, and style changes including opacity/display/visibility when applied with the devtools?

I have tried using mutationobserver, but this only works for changes made programmatically to the element. Tried it with setInterval as well, but once the element is removed from the dom, it doesn't detect it either.

Any insight or simply pointings in the right direction would be truly appreciated.

0

There are 0 best solutions below