Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- using CSS -->
- <head>
- <style>
- .my-disabled-link {
- cursor: default;
- pointer-events: none;
- }
- </style>
- </head>
- <body>
- <a href='my-url.com' class='my-disabled-link'>my disabled link</a>
- </body>
- <!-- using JavaScript -->
- <body>
- <a href='my-url.com' onclick='return false;'>my disabled link</a>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement