可以啊!<head>
<script>
function test(){
form1.submit();
alert(form1.a1.value);
}
</script>
</head>
<body>
<form name=form1 onSubmit="test()">
<input type=text value="" name=a1>
<input type=submit value="提交">
</form>
</body>