<html>
<body>
<p>这边引用了 WWF's 站点的内容:</p>
<p>WWF's goal is to:
<q id="myQuote" cite="http://www.wwf.org">
Build a future where people live in harmony with nature.</q>
We hope they succeed.
</p>
<p>点击下面的按钮,修改以上引用cite属性的值。</p>
<p id="demo"></p>
<button onclick="myFunction()">点我</button>
<script>
function myFunction()
{
document.getElementById("myQuote").cite="http://www.cnn.com";
document.getElementById("demo").innerHTML="cite属性值修改为 'www.cnn.com'.";
}
</script>
</body>
</html>