button按钮formaction属性重置表单action实例页面
回到相关文章 »效果:
代码:
CSS代码:
form { width: fit-content; padding: 10px; margin: 20px 0; background-color: #f0f3f7; }
HTML代码:
<form id="form1"> <p>表单序号:<input name="formIndex" value="1" readonly></p> </form> <form id="form2"> <p>表单序号:<input name="formIndex" value="2" readonly></p> <p><input type="submit" value="提交" form="form1" formaction="blank.html"></p> </form>