A:
<a href= "Javascript:if (Do you really want to delete this content? ') location= ' http://www.google.com ' > Popup </a>
Two kinds:
<script language= "JavaScript" >
function Delete_confirm (e)
{
if (Event.srcElement.outerText = = "Delete")
{
Event.returnvalue = Confirm ("Delete is not recoverable, are you sure you want to delete it?") ");
}
}
Document.onclick = delete_confirm;
</script>
<a href= "delete.aspx" onclick= "delete_confirm" > Delete </a>
Three kinds:
if (window.confirm (' Are you sure you want to cancel the transaction? ‘)){
Alert ("OK");
return true;
}else{
Alert ("Cancel");
return false;
}
Four kinds:
<script language= "JavaScript" >
function delete_confirm () <!--call Method--
{
Event.returnvalue = Confirm ("Delete is not recoverable, are you sure you want to delete it?") ");
}
</script> Five kinds:
if (Window.confirm (' OK? ') { = ' xxx '}
Six kinds:
<script type= "Text/javascript" language= "JavaScript" >
<!--
function Confirmact ()
{
if (Confirm (' OK to perform this action? '))
{
return true;
}
return false;
}
-
</script>
<a href= "operate.php?mod=user&act=delete&id=564" onclick= "return Confirmact ();" > Perform Operations </a>
JS Popup Confirmation Cancel dialog box