I'm trying to trigger a function by clicking on a link, but this is not working.
This works on a <button> or a <p> tag or anything else but not on a link.
<a href="#" onclick="search()">click me</a>
<button onclick="search()">clickity</button>
JavaScript function:
function search()
{
alert("hello");
return false;
}