I am trying to set pointer-events: none for a div through JavaScript, however the property is not being applied.
pointer-events: none
I have tried:
document.getE
There is an example in a book which uses element.setAttributeNS(null, "pointer-events", "none"); instead of using element.style.pointer-events = "none";.
element.setAttributeNS(null, "pointer-events", "none");
element.style.pointer-events = "none";