href off in js 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>
document.getElementById("nothing").addEventListener("click", function(event){
event.preventDefault()
});
<a id="nothing" href="#">Link</a>