J
JeeWee
Hi all,
I'm looking for a way to "bind" multiple eventhandler function to the same
event. In other languages this can often be done by using the += operator,
unfortunately this doesn't seem to work.
My (working) code for assigning an eventhandler for some form elements is:
for( var i = 0; i < document.formx.elements.length; i++ ) {
document.formx.elements.readonly = true;
alert( document.formx.elements.onclick );
document.formx.elements.onclick = HandlerFunctionX;
}
Is this possible? And if so, how should it be accomplished?
Thanks in advance,
Jan-Willem
I'm looking for a way to "bind" multiple eventhandler function to the same
event. In other languages this can often be done by using the += operator,
unfortunately this doesn't seem to work.
My (working) code for assigning an eventhandler for some form elements is:
for( var i = 0; i < document.formx.elements.length; i++ ) {
document.formx.elements.readonly = true;
alert( document.formx.elements.onclick );
document.formx.elements.onclick = HandlerFunctionX;
}
Is this possible? And if so, how should it be accomplished?
Thanks in advance,
Jan-Willem