Why use javascript:void(0) instead of # in href?

Viewed 53315

I can see a lot of <a href="javascript:void(0);"> on html pages. From I've read it does nothing by returning undefined. How is this different with <href="#">

3 Answers
Related