Is it possible to set form event handlers in an external script (via
onload)? I've used a script to set onmouseover, but I get errors when I
try to set onreset from an external .js file with this function:
function addValidationTo Form() {
document.forms[0].onreset = return confirm('reset form?');
document.forms[0].onsubmit = validateOnSubmi t();
}
--
Brian (remove ".invalid" to email me)
onload)? I've used a script to set onmouseover, but I get errors when I
try to set onreset from an external .js file with this function:
function addValidationTo Form() {
document.forms[0].onreset = return confirm('reset form?');
document.forms[0].onsubmit = validateOnSubmi t();
}
--
Brian (remove ".invalid" to email me)
Comment