This example will show you how to use JavaScript and CSS3 to switch web page background and text color. There is a toggle button at the top right corner of the web page. When you click it, it will change the web page background color and text color between black and white.