Changing Background Colors

The setInterval() method is used to repeatedly change the document background color every three seconds.