简体   繁体   English

我如何在图片地图上onclick提交功能

[英]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.

相关问题 使用 map function 将 onClick 传递给每个图像 - Pass onClick to each image using map function 如何将图像对象传递给为其分配的onclick函数? - How do I pass the image object into the onclick function being assigned to it? 如何使用JS中的onclick()函数放置图像 - How can I place an image with the onclick() function from JS 如何使用onclick功能点击图片输入密码? - How do I input password by clicking image with onclick function? 我如何使用 Next.js 图像作为 onClick 表单提交给谷歌 Oauth? - How could i use a Next.js image as onClick form submit for google Oauth? 当创建了多个函数时,如何提交一个 fom,在 onclick 和 onsubmit 等 evnet 上调用哪个函数? - How can i submit a fom when their is multiple functions are created , which function to call on evnets like onclick and onsubmit? 如何从Perl中的Submit按钮的onclick事件中调用Javascript函数? - How do I call a Javascript Function from onclick event of submit button in Perl? 如何将onclick函数与Google Map链接 - how to link the onclick function with google map 图片映射onclick问题 - Image map onclick problems 如何将索引从 javascript map function 传递到 onclick function? - How can I pass the index from javascript map function to the onclick function?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM