function handleForm() {
// Do whatever.
if (errors) {
return false;
} else {
return true;
}
}
The text goes on to say
"Conversely returning anything other than false allows the default event behavior to occur (in that case, the forms submission).
The problem with returning false to prevent the default browser behavior is that it only works reliably when the event listener was registered using the traditional approach. For example say event.js added the form submissison event handler using the newer approach.
U.addEvent(U.$('theForm'), 'submit', setHandlers);
With that c