Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Change pointer-events with JavaScript</h1>
<p>Click the "Try it" button to change the pointer-events property of the DIV1 element:</p>
<button onclick="myFunction()">Try it</button>
<div id="div1">Go to <a href="https://www.w3schools.com/css">CSS Tutorial</a></div>
<script>
function myFunction() {
  document.getElementById("div1").style.pointerEvents = "none";
}
</script>
</body>
</html>