pointer events none javascript code example
Example 1: css disable mouse events
pointer-events: none;
Example 2: pointer events none javascript
document.getElementById("id").style.pointerEvents = "none";
pointer-events: none;
document.getElementById("id").style.pointerEvents = "none";