html confirm() 用法

<html>
<head>
<script type="text/javascript">
function clearbutton()
{
if (!confirm("確定要重寫嗎?")) return false;
}
</script>
</head>
<body>
<form action="registerInfor.htm" method="post" onSubmit="return clearbutton();">
<input type="submit" name="submit"  value="刪除預約信息"/>
</form>
</body>
</html>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章