How to disable link from in built libraries of HTML

We need to inspect the html and need to find out the id of the link attached tag.

If it is an <a> tag then write the below code in styles for disable it

<style>
  #qr-reader div span a {
    pointer-events: none;
  }
</style>

Or can disable every clickable links by below code.

.disabled{
    pointer-events:none
}
<a class="disabled" href="https://google.com">Google</a>

Leave a comment

Your email address will not be published. Required fields are marked *