This is a JavaScript for html to change color of website background with the touch of a button. It changes the color randomly with the preset colors of you choice.
There are two parts of code you need to put into your HTML. As you seen in the text area bellow,
first one insert between <head> </head> tags, and second code insert into your
HTML body tags where you want to show this button for clicks.
The color names inside the code are preset, you can change it as you wish. You can refer to the W3C HTML Color Names for more details about complete list of the color names which is supported by all major browsers.
Instructions:
1. Add the designated script to the HEAD of your HTML document.
2. Place the last script into the BODY of your HTML document.
Insert this code before </head> |
Insert this code before </body> |
