+ 1
How to
How do make background in JavaScript
2 Answers
+ 2
Did you mean how to set background using Javascript?
If yes then you can do it like,
If you want to set color:
your_element.style.background= "rgb(50,50,50)";
If you want to add image:
your_element.style.background= "url('link/to/your/image/')";
Or similarly you can use backgroundColor or backgroundImage properties as well.