Which is a better way of using the image as link..

Posted by Sachindra on Stack Overflow See other posts from Stack Overflow or by Sachindra
Published on 2010-05-06T07:21:08Z Indexed on 2010/05/06 7:28 UTC
Read the original article Hit count: 137

Filed under:

Which is the better way of using the image as a link..

<A HREF="javascript:password()">
<IMG SRC="pict1.gif" NAME="pic1" ALT="about us!" BORDER="0" align="left"></A>

or the same thing using onClick in the img tag ?? Which one is advisable?? Are both equally good to use??

© Stack Overflow or respective owner

Related posts about JavaScript