Question about changing an event dynamically...

admin

Administrator
Staff member
How would I change the onClick event of this button:
<form name="myForm">
<input type="button" name="myButton" onClick="event1();"
</form>

to:
onClick="event2();"??

is it something like:
document.myForm.myButton.onClick = event2();???

Jason
 
Back
Top