<html>
<body>
<p>Click the button to change the background color of the document.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.body.style.backgroundColor = "yellow";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_doc_body by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:39 GMT -->
</html>