Anyone know a simple method to swap the background color of a webpage using JavaScript?
if you wish to use a button or some other event, just use this in JS:
document.querySelector("button").addEventListener("click", function() { document.body.style.backgroundColor = "red"; });