disable mouse events css 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";