if("backgroundColor" in document.body.style)
{
    document.body.style.backgroundColor = "red";
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.