送出表單前跳出確認對話框(一)
文章來源:http://www.o-asp.com/jscode/Show.asp?id=1289
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<title>表單特效-送出表單前跳出確認對話框(一)</title>
</head>
<body>
<script language="Javascript">
function CheckForm()
{
if(confirm("確認要送出本表單嗎?")==true)
return true;
else
return false;
}
</script>
<form name="form1" method="post" action="http://www.o-asp.com" onSubmit="return CheckForm();">
<input type="text" name="text">
<input type="submit" name="submit" value="送出">
</form>
</body>
</html>轉載請注明出處:超享網拍支援社區http://www.o-asp.com
送出表單前跳出確認對話框(二)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<title>表單特效-送出表單前跳出確認對話框(二)</title>
</head>
<body>
<form name="form1" method="post" action="http://www.o-asp.com">
<input type="text" name="text">
<input type="button" name="button" value="送出" onclick="if(confirm('確認要送出本表單嗎?')) this.form.submit();">
</form>
</body>
</html>轉載請注明出處:超享網拍支援社區http://www.o-asp.com
送出表單前跳出確認對話框(三)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<title>表單特效-送出表單前跳出確認對話框(三)</title>
</head>
<body>
<form name="form1" method="post" action="http://www.o-asp.com">
<input type="text" name="text">
<input type="submit" name="submit" value="送出" onclick="return(confirm('確認要送出本表單嗎?'))">
</form>
</body>
</html>轉載請注明出處:超享網拍支援社區http://www.o-asp.com
留言列表