I want to change the html documents background image in a javascript function but I'm having some difficulty with it. This is what I have:
function changeBgImage(){
document.background = "url('images/SecondBackground.png')";
}
But as I said, not working.. Any ideas?