I would like to know what is the difference between javascript:; and javascript:void(0); if I use them in the href attribute to bind a anchor (link)
<a href="javascript:;" onclick="DoSomething();">Link</a> <a href="javascript:void(0);" onclick="DoSomething();">Link</a>
I see that they work the same in all browsers, but what is the technical difference?
Regards, Magdy
javascript cross-browser href anchor
Ahmed Magdy Jun 26 '10 at 22:09 2010-06-26 22:09
source share