DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
JavaScript changing the color of an html element
var
element
=
document
.
getElementById
(
"myElement"
)
;
element
.
style
.
color
=
"#FF0000"
;
PREVIOUS
NEXT
Tagged:
#JavaScript
#changing
#color
#html
#element
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit