How To Disable Button / “a” Tag Click Function

Share Now

//html code
<a href="link.html" class="disabled">Link</a>


//css code
a.disabled {
   pointer-events: none;
   cursor: default;
}
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert