Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

document.getElementById

function changeColor(newColor) {
  var elem = document.getElementById('para');
  elem.style.background-color = newColor;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
8+3 =