Disabling a link through css

Suppose you have link in html as shown below with id = 'linkClass' 
<a href="link.html" class="linkClass">Link
, write following lines as css code

.
linkClass {
pointer-events: none;
cursor: default;
}
 Now your link is disabled.

Published by Sandeep Kumar

He is a Salesforce Certified Application Architect having 11+ years of experience in Salesforce.

Leave a Reply