<html>
<body>
<h3>A demonstration of how to access an ADDRESS element</h3>
<address id="myAdr">
Example.com<br>
Box 564, Disneyland<br>
USA
</address>
<p>Click the button to set the text color of the address to red.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
var x = document.getElementById("myAdr");
x.style.color = "red";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_address_get by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:04:19 GMT -->
</html>