<div class="codetitle"> <span><a style="CURSOR: pointer" data="16981" class="copybut" id="copybut16981" onclick="doCopy('code16981')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code16981"> <br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br><html xmlns="http://www.w3.org/1999/xhtml"> <br><head> <br><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <br><title>确认是否删除</title> <br><script type="text/javascript"> <br>function del(){ <br>if(!confirm("确认要删除?")){ <br>window.event.returnValue = false; <br>} <br>} <br></script> <br></head> <br><body> <br><a href="http://www.baidu.com" onclick="return del()">删除</a> <br></body> <br></html> <br> </div>