how to change a background in javascript code example
Example 1: javascript change background color
document.body.style.backgroundColor = "yellow";
Example 2: change background with js
document.getElementById("myDIV").style.background = "url('smiley.gif') blue repeat-x center";