日期:2014-05-20 浏览次数:20896 次
<html>
<head>
<script>
function check()
{
document.myform.submit();
}
</script>
</head>
<body>
<form name="myform" method="post">
<img src="" onclick="check()">
</form>
</body>
</html>
------解决方案--------------------
document.myform.submit();
------解决方案--------------------
利用form提交
document.formName.submit();
------解决方案--------------------
<html>
<body>
<form name="myform" method="post">
<img src="" onclick="javascript:document.myform.submit();">
</form>
</body>
</html>
------解决方案--------------------
所噶。。。
<html>
<body>
<form id="myform" method="post">
<img src="" onclick="javascript:document.forms['myform'].submit();">
</form>
</body>
</html>