Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript change background color

function changeBackground(color) {
   document.body.style.background = color;
}

window.addEventListener("load",function() { changeBackground('red') });
Source by wlearnsmart.com #
 
PREVIOUS NEXT
Tagged: #javascript #change #background #color
ADD COMMENT
Topic
Name
2+8 =