关于按钮的问题,急,在线等待

yrj1210 2003-08-14 02:25:48
我现在有两个按钮,但是他们的type="image"(不能改成type="submit") 一个功能为重写,一个功能为提交
代码如下
<input type="image" border="0" name="imageField" src="/images/button_re.jpg" width="75" height="24">
<input type="image" border="0" name="imageField2" src="/images/button_enter.jpg" width="75" height="24">
应该怎么写才能得到效果
...全文
102 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
possible_Y 2003-08-14
  • 打赏
  • 举报
回复
<img src="/images/button_re.jpg" border="0" style="cursor: hand" onclick="form_name.reset()">
wpoison 2003-08-14
  • 打赏
  • 举报
回复
image类型在form中会默认为点击后提交的。如果一定要代码,那么在第一个里面加上onclick="form1.submit()",第二个加上onclick="form1.reset()"
把form1替换成你的form的名字。

87,987

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧