- 4

dom

Fill in the blanks to change the background color of all span elements of the page. var s = document. getElementsByTagName(" colo "); (var x=0; x<s.length;x++) { s[ ].style.backgroundColor = "#33EA73"; }

12th May 2017, 10:11 AM
Mirmürsəl Mürsəlov
Mirmürsəl Mürsəlov - avatar
4 Answers
+ 5
var s = document.getElementsByTagName("span"); for (var x=0; x<s.length; x++) { s[x].style.backgroundColor = "#33EA73"; }
12th May 2017, 2:02 PM
visph
visph - avatar
0
good
9th Aug 2017, 9:43 AM
Богдан Кацун
Богдан Кацун - avatar
0
Cool
29th Sep 2019, 5:52 PM
Sash The Smartest Alien
Sash The Smartest Alien - avatar
0
span for x
11th Aug 2021, 3:39 PM
W.G.A.C.Nandasena
W.G.A.C.Nandasena - avatar