<a href="javascript:void(0)" onclick="Method1()">Link 1</a>
I realize that the above method of using javascript:void(0)
is a bad practice and a better way of handling undefined would be
<a href="#" onclick="Method1()">Link 1</a>
My question is:
Is there ever a situation where we should be using javascript:void(0)
as against <a href="#">