<html><head>
<script language="javascript" type="text/javascript">
function FormSubmit()
{
myFrm.action = "a.asp"
myFrm.submit();
}
</script>
</head>
<body>
<form name="myFrm">
表单项1:<input type="text" name="tt1">
表单项2:<input type="text" name="tt2">
</form>
<img alt="提交" src="b.gif" width="50" height="22" style="cursor:hand;" οnclick="FormSubmit();">
</body>
</html>
转载于:https://www.cnblogs.com/starxp/articles/1712672.html