<html>
<body>
<h1>演示如何访问 DEL 元素</h1>
<p><del id="myDel" cite="why_deleted.html">这段文字已被删除。</del></p>
<p>单击该按钮可获取解释文本被删除原因的页面的 URL。</p>
<button onclick="myFunction()">试一试</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myDel").cite;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>