+ 5

Why this code doesn't work?

Why this code doesn't work? :( (Thank you in advance) https://code.sololearn.com/WCuy1IenBvYO/?ref=app

5th Feb 2018, 3:11 PM
static
static - avatar
3 odpowiedzi
+ 5
Run your JS code after the whole page is loaded, using the window.onload event. window.onload = function() { var dig = document.getElementById("dig"); dig.innerHTML = "ты не кросс"; }
5th Feb 2018, 3:47 PM
Dev
Dev - avatar
+ 3
Я все равно не понимаю
5th Feb 2018, 3:29 PM
static
static - avatar
+ 1
this code selects an item in does not take a value here is the problem
5th Feb 2018, 3:24 PM
Jendlas (Russian)
Jendlas (Russian) - avatar