What’s the smallest and fastest way to modify a document’s background color using javascript? it should be cross browser.
I tried the following which didn’t work in firebug:
document.body.bgcolor = "#eee";
document.documentElement.bgcolor = "#eee";
Use the
backgroundColorCSS property: