Bagaimana kita bisa mengubah latar belakang di loop img di halaman web
<div id='box'></div>
Vivacious Vicuña
<div id='box'></div>
var box = document.getElementById('box'),
imgs = ['/image.jpg', '/image2.jpg'];
box.onclick = function () {
img = imgs.shift();
imgs.push(img);
box.style.backgroundImage = img;
};
#box {
background: url("https://priteshgupta.com/wp-content/uploads/2011/06/html-ipsum.png");
width:200px;
height:200px;
margin:50px;
}