<html>
<body>
<p>Here is a quote from WWF's website:</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>Click the button below to change the value of the cite attribute of the quotation above.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("myQuote").cite = "http://www.cnn.com/";
document.getElementById("demo").innerHTML = "The value of the cite attribute was changed to 'www.cnn.com'.";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_quote_cite2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:48 GMT -->
</html>