Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <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], Fri, 23 Jan 2015 08:34:51 GMT --> </html>
Result:
Try it Yourself - © w3schools.com