[Javascript] href vs onclick
Anthony Webster
Anthonywebster at venda.com
Tue Oct 8 04:16:20 CDT 2002
hi,
I always used to call my scripts like this:
<a href="#" onclick="myFunction();">click here</a>
but have recently found this is causing problems with IE5
the workaround has been to do this:
<a href="javascript:myFunction();">click here</a>
is this the correct way to call scripts or are both methods acceptable?
just wondering if I've been doing things wrong all this time,
thanks
anthony
More information about the Javascript
mailing list