disable href in javascript code example
Example 1: html how to give false link
document.getElementById("nothing").addEventListener("click", function(event){
event.preventDefault()
});
Example 2: html how to give false link
<a id="nothing" href="#">Link</a>