Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to change background color using js

var warning = document.getElementById("warning");
  warning.style.background-color = "red";

Source by teamtreehouse.com #
 
PREVIOUS NEXT
Tagged: #change #background #color #js
ADD COMMENT
Topic
Name
9+8 =