change background image javscript code example
Example: js style background image by id
document.getElementById('Demo').style.backgroundImage = "url('Test.png')";
document.getElementById('Demo').style.backgroundImage = "url('Test.png')";