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