<html>
<body>
<p><del id="myDel" cite="why_deleted.htm">This text has been deleted</del></p>
<p>Click the button to return the value of the cite attribute of the deleted text.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myDel").cite;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>