Anyone know a simple method to swap the background color of a webpage using JavaScript?
I would prefer to see the use of a css class here. It avoids having hard to read colors / hex codes in javascript.
document.body.className = className;