ARTLUNG LAB Share

1999

Change Document Background Color

JavaScript can change the background of the document

How?

        <style>
        body { background-color: unset; }
        article#content { background-color: unset; }
    </style>
    <p><a href="#"
          onmouseover="body.style.backgroundColor='pink'"
          onmouseout="body.style.backgroundColor='#FFFFFF'"
          onclick="return false"
        >JavaScript can change the background of the document</a></p>