if(document.getElementById("background")) { document.body.classList.add("imageservice"); document.getElementById("background").style.backgroundImage = "url(https://update.pimcore.org/images/1073.jpg)"; document.getElementById("backgroundImageInfo").innerHTML = 'Photo by Sam Ferrara'; }