> Links don't have an onClick attribute.
> They do have an onclick attribute, but it should be assigned a
> reference to a function, not a string value.
So how would I modify my snippet above to do what I want it to do?
Thanks
Randy Webb - 31 Oct 2005 06:52 GMT
VA said the following on 10/30/2005 11:39 PM:
>>Links don't have an onClick attribute.
>>They do have an onclick attribute, but it should be assigned a
>>reference to a function, not a string value.
>
> So how would I modify my snippet above to do what I want it to do?
You change onClick in your code to onclick
CaSe MaTtErS

Signature
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Mick White - 31 Oct 2005 17:48 GMT
>>Links don't have an onClick attribute.
>>They do have an onclick attribute, but it should be assigned a
>>reference to a function, not a string value.
>
> So how would I modify my snippet above to do what I want it to do?
mylink.onclick=function(){alert('clicked');return false;}
Mick