DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+2 =
Submit