javascript change color for class name

Solutions on MaxInterview for javascript change color for class name by the best coders in the world

showing results for - "javascript change color for class name"
Enora
23 May 2016
1function reset() {
2	var elements = document.getElementsByClassName('pixel'); // get all elements
3	for(var i = 0; i < elements.length; i++){
4		elements[i].style.backgroundColor = "white";
5	}
6}
7