input的type等于mage标签引发的页面提交!

主要原因是使用了<input type="image",而且放在了<form中。

<input type="image"标签类似<input type="submit",只要放在form中,执行该按钮就会提交页面。

 

解决方法:

1、不使用<input type="image"标签;

2、在onclick 事件中添加一段“;return false;”的脚本,如下:<input type="image" name="imageField1" id="imageField1" src="../imp/_img_files/search.gif" onclick="openTestList();return false;">

posted on   liuwenbohhh  阅读(168)  评论(0编辑  收藏  举报

努力加载评论中...
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示