0👍
You’re missing a set of quotes in your first test, try like this:
document.body.style.backgroundImage = "url('" + item + "')";
Source:stackexchange.com
0👍
You’re missing a set of quotes in your first test, try like this:
document.body.style.backgroundImage = "url('" + item + "')";