<html>
<head>
<title>Validator</title>
<script type="text/javascript">
function checkForm() {
if (window.confirm("Are you sure you want to sumbit this form?")) {
return true;
}
return false;
}
</script>
</head>
<body>
<form action="2.html" onsubmit="return checkForm()">
Please click the submit button:<br>
<input type="text" name="text" value="text"><br>
<input type="submit">
</form>
</body>
</html>
html(jsp)如何实现对form提交前进行确认
原创dyllove98 ©著作权
文章标签 form提交前进行确认 文章分类 前端开发
©著作权归作者所有:来自51CTO博客作者dyllove98的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章