코드 사본은 다음과 같습니다.
<! 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">
<헤드>
<meta http-equiv = "content-type"content = "text /html; charset = utf-8" />
<title> 삭제 여부를 확인하십시오 </title>
<script type = "text/javaScript">
함수 del () {
if (! 확인 ( "삭제 확인?")) {
Window.event.returnValue = false;
}
}
</스크립트>
</head>
<body>
<a href = "http://www.baidu.com"onclick = "return del ()"> delete </a>
</body>
</html>