实例一:
<form method="post" action="ok.php" onsubmit="return sumbit_sure()">
<script language="javascript">
function sumbit_sure(){
var gnl=confirm("确定?");
if (gnl==true){
return true;
}else{
return false;
}
}
</script>
实例二:
<form method="post" action="act.php" style="display: inline">
<input type="hidden" name="id" value="<?php echo $id ?>">
<input type="submit" name="" value="无资料" class="btn btn-warning" style="display: inline" onclick="return confirm('确认?')">
</form>
表格提交增加确认提示
于 2018-10-10 16:51:46 首次发布