This should be a simple one, but I haven't been able to find an answer
I have a link that triggers a function.
<a href="someplace.html" onclick="myfunction()"</a>
If I want to prevent the link from opening, I need the function to return false, right?
function myfunction() {
// some code
return false;
}
However, this doesn't work. I might be missing something essential here, but please help me out.
Why is this not working: http://codepen.io/lukastillmann/pen/aNmZbx?editors=1010