I've got a form with an onsubmit attribute like this (which I can't change):
<form onsubmit="return validate(this);">
I want to run another function, that needs to look at the return result of validate()
and then possibly return false
to prevent the form submitting.
Edit:
The contents of onsubmit=""
could change, so I can't just write that code inside my own function.