[thelist] DHTML Modifying the "onclick" attribute
Peter-Paul Koch
gassinaumasis at hotmail.com
Fri Jan 25 10:21:00 CST 2002
>Does anyone know how to change the "onclick" attribute
>associated with a button?
>
>I have tried (and several variations of this code):
>
>function ChangeButtonOnclick(Thisbutton)
> {
> Thisbutton.onclick = "DoThis()";
> }
Thisbutton.onclick = DoThis;
You assign a function to the onclick, not a string.
ppk
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
More information about the thelist
mailing list