Possible Duplicates:
What's the effect of adding 'return false' to an onclick event?
When and why to 'return false' in javascript?
I mean, if I have this function :
function openMask() {
alert("enter");
}
is it better call it as :
<a href="javascript:void(0);" onclick="openMask()">Link</a>
or :
<a href="javascript:void(0);" onclick="openMask(); return false;">Link</a>
??? I'm really curious about it! Never understood the difference...