I have a <a href="someaddress"> link that also has a onclick function under a parent <div> with id of “mention”. How can I make it so that by default, when user clicks the <a> link it will not redirect to the webpage but it will do the onclick function?
I want to still have href because in case if user’s javascript doesn’t work, at least they can still go to the link.
onclick="return false;"is a way to make an<a>tag not actually do anything on click.EDIT
i had
onlick, obv. it was supposed to beonclick