如何用javaScript实现form的submit功能
<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;" onclick="FormSubmit();">
</body>
</html>