I have this problem:
<a href="#" class="btn btn-lg btn-default" onclick="red()">Change Background</a> function red(){ document.body.style.backgroundColor="#C0C0C0"; } Created a button on the page that changes the background. And how to make it so that when you click on the same button, everything returns to its original state, and so it switches from one background to another with each press?