Anyone know a simple method to swap the background color of a webpage using JavaScript?
Add this script element to your body element, changing the color as desired:
<body> <p>Hello, World!</p> <script type="text/javascript"> document.body.style.backgroundColor = "#ff0000"; // red </script> </body>