Page 1 of 1

href javascript call

Posted: Thu Apr 03, 2008 5:12 pm
by WaldoMonster
href javascript call

What are the advantages and disadvantages of these href javascript calls?
<a href="javascript:example()">test</a>
<a href="#" onClick="example()">test</a>
<a href="javascript:void(0)" onClick="example()">test</a>

Re: href javascript call

Posted: Thu Apr 03, 2008 6:44 pm
by Christopher
They are just different ways to get around not having the link submit.