Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<a id="myAnchor" href="https://www.w3schools.com">A Link: Go to w3schools.com</a>
<p id="demo">Click the button to remove the href attribute from the a element.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
  document.getElementById("myAnchor").removeAttribute("href"); 
}
</script>
</body>
</html>