[thelist] DHTML Modifying the "onclick" attribute

McCaw, Douglas * McCawD at cber.FDA.gov
Fri Jan 25 10:03:01 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()";
	}

I want to change the "onclick" functionality of this and
other buttons, from an external process (external to the button).

I have thought of several work arounds, but I would like to
learn more about altering the DOM directly.

Douglas McCaw

Applications Consultant
dmccaw1 at umbc.edu
mccawd at cber.fda.gov





More information about the thelist mailing list