Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

background

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