<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>js Confirm Delete Dialog</title> </head> <body> <p> <script language="javascript"> function delcfm() { if (!confirm("Confirm to delete?")) { window.event.returnValue = false; } } </script> <a href="//www.VeVB.COM/" onClick="delcfm()">Delete</a></p> <p>Code description: After clicking the deleted hyperlink, the delcfm() function will be executed. In the dialog box, if you click "OK", the function will return a true value, and the page will be transferred to the link page in the <a> tag to execute the deleted page; if you click "Cancel", the function will return a false value, and the <a> tag will not be transferred to the page where the deleted is performed. </p> <p>For more code, please visit: <a href=//www.VeVB.COM target="_blank">Wulin.com</a></p> </body> </html>