+ 1
What's the error ['Solved']
6 Respostas
+ 4
Invalid assignment. Try this
var bg = document.getElementById('div_id');
bg.style.backgroundImage = "url('https://previews.123rf.com/images/leonidtit/leonidtit1512/leonidtit151200034/48985351-fantastic-foggy-day-and-bright-hills-by-sunlight-dramatic-morning-scenery-in-carpathian-ukraine.jpg')";
+ 2
Code Crasher Ok but nothing happened
+ 2
Change the URL but just help me
+ 2
Abhishek Singh , everything is working, just in the css, use #div_id selector instead of #div as the id of your element is div_id.
https://code.sololearn.com/W5VFqGJOBAWR/?ref=app
+ 2