在同一表单内,多个提交按钮的处理方式

//前端代码
<
form method="POST" onsubmit="return ad.checkform(this);return false;"> ...... ......
     <a href="javascript:void(0);" onclick="this.parentNode.submit();">
<input type="submit" onclick="this.form.target='_blank'" name="preview" value=" 预 览 " > <input type="submit" onclick="this.form.target='_self'" name="save" value=" 保 存 " > </form>
posted @ 2012-10-22 10:05  赤脚大仙~  阅读(704)  评论(1)    收藏  举报
View Code