DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
generate random color javascript
var
randomColor
=
Math
.
floor
(
Math
.
random
(
)
*
16777215
)
.
toString
(
16
)
;
Create
a snippet
Source by css-tricks.com #
PREVIOUS
NEXT
Tagged:
#generate
#random
#color
#javascript
ADD COMMENT
Topic
COMMENT
Name
6+3 =
Submit