提交前有一个确认窗口,但返回true(确认提交)后也需要进入确认页面。
拥有这个:
<button type="submit" value="Save" id="Save" onclick="clicked();" >Submit Form</button>
function clicked() {
if (confirm('Are you sure you want to submit? You will not be able to go back.')) {
yourformelement.submit();
} else {
return false;
}
}
试图在某处包含 'go to' location.href='Confirmation.html' 但不确定具体如何。任何输入将不胜感激。