Which of the following ways is a better way to call a js function from an a tag?
<a href="javascript:someFunction()">LINK</a>
OR
<a href="#" onclick="someFunction();" return false;">LINK</a>
I have seen this question here, but it says <span onclick="someFunction()">
is a better option. But due to some reasons I have to use <a>
links.
EDIT: I am looking for a cross browser & cross platform solution which should work on androids & iPads too.