Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to change background image url in javascript

var element = document.getElementById("demo")
element.style.backgroundImage = "url('img_tree.png')";
 
PREVIOUS NEXT
Tagged: #change #background #image #url #javascript
ADD COMMENT
Topic
Name
5+6 =