if(document.theForm.onsubmit()){ do something }else{ }
<form action="xxxx.yyy" method="post" onsubmit="alert('call any function here'); return true;">
<form action="xxxx.yyy" method="post" onsubmit="return validateForm(this);">
onload=function(){ var form=document.forms['theForm']; form.onsubmit=function(){ // do something } }
Jump To Top of Thread