Mega Code Archive

 
Categories / JavaScript DHTML / Style Layout
 

Assign random color to

<html> <head> <title>The Node</title> <script type="text/javascript"> function randomColor() {   r=Math.floor(Math.random() * 255).toString(16);   g=Math.floor(Math.random() * 255).toString(16);   b=Math.floor(Math.random() * 255).toString(16);     alert("#"+r+g+b); } randomColor(); </script> <body onload="outputNodeProps(document)"> </body> </html>