واحد،
نسخة الكود كما يلي:
<script>
وظيفة del () {
إذا (تأكيد ("تأكيد للحذف")) {
تنبيه ("نعم") ؛
}
آخر{
تنبيه ("لا")
يعود؛
}
}
</script>
<html>
<type type = "button" value = "del" onClick = "del () ؛">
</html>
اثنين،
نسخة الكود كما يلي:
<a href = '/console/oneyear.action؟ id = <s: property value = "id"/>'> edit </a> | <a href = 'javaScript: delmonthMessage ("<s: property value =" twoid " />") 'OnClick = "Return Fairor (" تأكيد لحذف هذا السجل؟ ")"> حذف </a>
ثلاثة،
نسخة الكود كما يلي:
<! doctype html public "-// w3c // dtd xhtml 1.0 transitional // en"
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "content-type" content = "text /html ؛ charset = gb2312" />
<title> JS تأكيد الحذف معرض الصور الحوار الكسول </title>
</head>
<body>
<p>
<script language = "javaScript">
وظيفة delcfm () {
إذا (! تأكيد ("تأكيد لحذف؟")) {
window.event.RETURNVALUE = false ؛
}
}
</script>
<a href = "http://www.lanrentuku.com/" onClick = "delcfm ()"> حذف </a> </p>
<p> الوصف: بعد النقر فوق الارتباط التشعبي المحذوف ، سيتم تنفيذ وظيفة DELCFM (). في علامة <a> ، تم تنفيذ الصفحة التي تم تنفيذها لحذفها ؛ </p>
<p> لمزيد من الرمز ، يرجى زيارة: <a href = "http://www.lanrentuku.com" target = "_ blank"> lazy gallery </a> </p>
</body>
</html>