Menu
Okay. I’m trying to dynamically modify the pages CSS styling, and change the background image. Here’s what I was told to try.
<body id=”id_name”>
and the script…
document.getElementById(“id_name”).style.backgroundImage=”name.jpg”;
or,
document.body.style.backgroundImage=”name.jpg”;
Neither one works. How can I modify the background image with Javascript through changing the style?