Change background of page using javascript

In this article i will tell you how you can change the background of the page using javascript. First i have made 4 buttons and put the value of these buttons as Red, green, blue and yellow. Then i write javascript code in onclick attribute which changes the background color when the user click on the page. I have used javascript:document.bgColor in the onclick action and assign some [...]