change background image with js code example
Example 1: change background with js
document.body.style.backgroundColor = "red";
Example 2: change background with js
object.style.background = "color image
repeat attachment position size origin clip|initial|inherit"