<form action="the page you want to go to" method="post or get" onsubmit="javascript:return the_script_you_want_to_call()">
and
function the_script_you_want_to_call(){
...
}
this calls "the_script_you_want_to_call" when submitting the form
if "the_script_you_want_to_call" returns TRUE then the form is submitted else it's not.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.