[Javascript] Changing the arguments in an onClick event

Terry Riegel riegel at clearimageonline.com
Wed Jun 2 11:21:55 CDT 2004


Hopefully this is an easy one.

I have a link

<a href="#" onclick="supersize('image1-big.jpg')"><img 
src="image1-med.jpg" id="mainimage"></a>

I have a script that changes the url, can I also change the onclick url 
also? Is there a better way to do this?

  document["mainimage"].src=url

Terry Riegel
-----------------
MAILKEY: 2524427349



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 422 bytes
Desc: not available
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20040602/b20cea98/attachment.bin>


More information about the Javascript mailing list