+ 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 Answers
+ 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