Possible Duplicate:
JavaScript function in href vs. onclick
From <a>, Javascript can be called in two ways:
<a href="javascript:alert('href triggered me')">Click me!!!</a><a href="#" onclick="alert('I was triggered by a DOM event')">Click me!!!</a>
As far as I have seen, Web-developers treat the both ways equally. What are the advantages and disadvantages of both?