一个简单的 内联Javascript确认 就足够了:
<form onsubmit="return confirm('Do you really want to submit the form?');">除非您正在执行 验证 ,否则不需要 外部函数 ,可以执行以下操作: __
<script>function validate(form) { // validation pre here ... if(!valid) { alert('Please correct the errors in the form!'); return false; } else { return confirm('Do you really want to submit the form?'); }}</script><form onsubmit="return validate(this);">


