[Javascript] image preloading problems
Jon Drukman
jsd at cluttered.com
Fri Aug 10 12:40:54 CDT 2001
At 12:39 PM 8/10/2001 -0500, Peter Brunone wrote:
>Jon,
>
> Just an unrelated observation (I apologize if this has been brought up
>already), but it's generally better coding practice to use the HREF property
>of a link with the javascript: pseudoprotocol rather than its onClick event
>handler, e.g.
>
><A HREF="javascript:doThisFunction(withThisParameter)">
thanks for the tip peter. i'll do that.
here's a question: is it better to do
<a href="javascript:code"><img src></a>
or
<img src="..." onClick="...">
and why?
-jsd-
More information about the Javascript
mailing list