Short story I want to change an image every 4 seconds from an array of images. What do I need to add here to make this happen.
var list = ["img1", "img2", "img3"];
function ChangeBackground () {
document.getElementById('background').src = "images/"+list[i];
}
window.setInterval(ChangeBackground(), 4000);