Тогда м.б. так:
<form name='forma' onsubmit="myFunc(this);">
<input type='text' name='text' value='text'/>
<input type='submit'/>
</form>
<script language='javascript' type='text/javascript'>
var myForm;
function myForm(_form) {
myForm = _form;
};
</script>