[Javascript] Passing form name to function

Clancy Jones clancyjones at hotmail.com
Tue Sep 2 19:43:36 CDT 2003


Hi all, I have a page with several forms on it.  I want to have a generic 
javascript function for submitting them after validation.

eg.
<script language="JavaScript">
function postForm(formName){
document.formName.submit();
}
</script>

_________________________________________________________________
Surf the net and talk on the phone with Xtra Jetstream @  
http://www.xtra.co.nz/products/0,,5803,00.html !




More information about the Javascript mailing list