<html>
<body>
<p><del id="myDel" cite="why_deleted.htm">This text has been deleted</del></p>
<p>Click the button to change the value of the cite attribute of the deleted text.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("myDel").cite = "http://www.example.com/whywedeletedsometext";
document.getElementById("demo").innerHTML = "The value of the cite attribute was changed to 'www.example.com/whywedeletedsometext.htm'.";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_del_cite2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:12 GMT -->
</html>