HI,
For a tag, you can execute javascript through href or onclick.
When should I use onclick instead of href?
for me, only advantage I get with oncli
You need onclick when more things should be done than jumping to another page.