I was trying to make clicking a Link HTML <a></a>
run a javascript function, I a priori had the following idea to link a onclick
attribute to the <a>
tag like this:
<a href="#" onclick="funcao()">OnClick</a>
But this way, when the page is clicked back to the top of the scroll,
Question: How to trigger a javascript function without this scroll (without any effect, transparent to the user)?