Answers for "how to disable href link in html"

0

how to disable a link

<style>
.isDisabled {
  color: currentColor;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}
</style>
<a class="isDisabled" href="https://unfetteredthoughts.net">Disabled Link</a>
Posted by: Guest on July-18-2020
0

how to disable link in hmtl

.isDisabled {
  color: currentColor;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
  pointer-events: none;
}
Posted by: Guest on September-22-2021

Browse Popular Code Answers by Language