Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style>
.disabled {
pointer-events: none;
cursor: default;
text-decoration: none;
color: #000000;
}
</style>
</head>
<body>
<h2>Disable link on current page</h2>
<a href="https://www.w3docs.com/" class="disabled">Click Here</a>
</body>
</html>