<script language="javascript"> function sumbit_sure(){ var gnl=confirm("确定要提交?"); if (gnl==true){ return true; }else{ return false; } } </script> </html> <body> <form action="2.html" οnsubmit="return sumbit_sure()"> 点击我提交<br> <input type="text" name="text" value="text"><br> <input type="submit"> </form> </body> </html>
表单提交后弹出确认窗口
最新推荐文章于 2022-05-26 17:58:20 发布