I would like to know what is the difference between javascript:; and javascript:void(0); if I use them in href attribure for a>
javascript:;
javascript:void(0);
href
a>
One runs JavaScript that has no statements, the other runs JavaScript that evaluates the statement 0 and then returns undefined.
0
undefined
Neither should be used.