<html>
<body>
<h1>演示如何访问n INS 元素</h1>
<p>
<ins id="myIns" cite="why_inserted.html">这是插入的文本。</ins>
</p>
<p>单击按钮可获取解释插入文本原因的页面的 URL。</p>
<button onclick="myFunction()">试一试</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myIns").cite;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>