[英]how will i onclick submit function on image map
i have this set of codes. 我有这组代码。 if i click the Head the form will submit but it did not happen what should i do ? 如果我单击标题,表单将提交但没有发生,我该怎么办?
<form action="" name="form" method="post" name="myform" >
<area shape="poly" class="noborder icolor00ff00"coords="114,29,122,30,1" onClick="this.form.submit();" name="Head" value="Head"title="Head" alt="Head" />
</form>
I am not sure this will work, but I think it would: 我不确定这是否行得通,但我认为它将:
<form name="form" action="somefile.xxx" method="post>
...set up image, hidden input fields, etc....
<area shape="poly" class="noborder icolor00ff00" coords="55,143,58,159" nohref onClick="form.submit();" alt="Submit request">
</form>
one more answer 还有一个答案
<form name="form" action="../cgi-bin/schools/d/s/csvsearch.pl" method="GET">
...set up image, hidden input fields, etc....
<img src="../images/california_counties_map2.jpg" width="700" height="803" border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="213,46,290,104" alt="test" onClick="form.submit();" nohref>
</map>
</form>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.