Reading this question : What does "javascript:void(0)" mean? I can understand why <a href="javascript:void(0)"
is used - in order to prevent a page redirection.
I have come across this code :
<a id="myId" href="javascript:void()"
onclick="removePopup()">Close</a>
The operator void
does not take any parameter in this case. Is this a bug ?