Try this when you dont want user to redirect on click
<a href="https://stackoverflow.com/questions/5376444/javascript: void(0)">I am a useless link</a>
More Related Contents:
- Get one element title and add this to another div in jquery
- Unescape HTML entities in JavaScript?
- Resizing an image in an HTML5 canvas
- Where to place JavaScript in an HTML file?
- Check if an element contains a class in JavaScript?
- In HTML5, is the localStorage object isolated per page/domain?
- How to prevent a click on a ‘#’ link from jumping to top of page?
- How to disable scroll without hiding it?
- How to pass parameter to function using in addEventListener?
- How to convert a DOM node list to an array in Javascript?
- Getting unparsed (raw) HTML with JavaScript
- document.getElementsByClassName().innerHTML always returns “undefined”
- How to prevent an HTTP request just for a favicon?
- jQuery jump or scroll to certain position, div or target on the page from button onclick [duplicate]
- Directly reference HTML elements [duplicate]
- Storing Image Data for offline web application (client-side storage database)
- A good way to redirect with a POST request?
- How do I get the HTML source from the page?
- Is it possible to style a title? (and with CSS or js?) [duplicate]
- mailto using javascript
- HTML Input type number Thousand separator
- jQuery support “:invalid” selector
- combo box is getting vanished when an alert is coming
- scrollIntoView vs moveToElement
- How to display selected image without sending data to server?
- submit event does not fire if submit initiated programmatically
- universal javascript for set homepage functionality [duplicate]
- Javascript-Setting background image of a DIV via a function and function parameter
- Find caret position in textarea in pixels [duplicate]
- Form submit button will not submit when name of button is “submit” [duplicate]