[Javascript] Changing the arguments in an onClick event

Flavio Gomes flavio at economisa.com.br
Wed Jun 2 11:30:51 CDT 2004


You got me lost ^^

You mean to change the href(target url) to the anchor? (<a> Anchor =] </a> )
Yeah, no problem: myAnchor.href = newUrlHere

---
Flavio Gomes
flavio at economisa.com.br


Terry Riegel wrote:

> 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
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>



More information about the Javascript mailing list