With the help of css you will disable the hyperlink. Try the below
a.disabled {
pointer-events: none;
cursor: default;
}
<a href="https://stackoverflow.com/questions/13955667/link.html" class="disabled">Link</a>
More Related Contents:
- jQuery Mobile: document ready vs. page events
- How do you read CSS rule values with JavaScript?
- jQuery Mobile: Markup Enhancement of dynamically added content
- HTML5 Local storage vs. Session storage
- Why is the value of my input always empty if I store it in a variable?
- Changing nav-bar color after scrolling?
- Onclick javascript to make browser go back to previous page?
- How to maintain a WebSockets connection between pages?
- Template does not update when using ui-router and ion-tabs
- HTML input type=”number” still returning a string when accessed from javascript
- Checkbox Check Event Listener
- Is there any “on DOM change” event? [duplicate]
- event.offsetX in Firefox
- How to select all text in contenteditable div?
- shorthand http:// as // for script and link tags? anyone see / use this before?
- Javascript – Dynamically assign onclick event in the loop
- javascript code not work in HEAD tag
- ‘img-src’ was not explicitly set, so ‘default-src’ is used as a fallback
- Finding number of lines in an html textarea
- Getting “Uncaught ReferenceError: google is not defined” error using Google Maps API
- How do I determine if a checkbox is checked?
- Impossible to hide navigation bars in Safari iOS 7 for iPhone/iPod touch
- Trigger a button click inside an iframe [duplicate]
- How to determine if user selected a file for file upload?
- Remove scrollbar but not scrolling functionality [duplicate]
- How can I get DPI from image in JS?
- How to make a button execute a php script?
- Change onClick attribute with javascript
- How can I use Perl to grab text from a web page that is dynamically generated with JavaScript?
- HTML form input tag name element array with JavaScript