ok
I have
<form name="entry" method="post" action="next.asp"
<input type="button" name="save" value="Insert" onClick="ShowPage('First','');">
now, later on in my code I want to change the first parameter of the ShowPage function for the onClick event.
document.entry.save.value="Update";
document.entry.save.onClick="ShowPage('Second','');
is this possible? To change what an event does after it's been declared? The value of the save button changes just fine, and I don't get a javascript error on the second line...but when click the button, it proceeds with the 'First' parameter instead of 'Second' as though it never executed...
any ideas?
I have
<form name="entry" method="post" action="next.asp"
<input type="button" name="save" value="Insert" onClick="ShowPage('First','');">
now, later on in my code I want to change the first parameter of the ShowPage function for the onClick event.
document.entry.save.value="Update";
document.entry.save.onClick="ShowPage('Second','');
is this possible? To change what an event does after it's been declared? The value of the save button changes just fine, and I don't get a javascript error on the second line...but when click the button, it proceeds with the 'First' parameter instead of 'Second' as though it never executed...
any ideas?