<Head>

</head>
<Body  Onload="setcolor ()"   >
<Div  Id=mydiv  Style="font: 12px   sans-serif, width: 300px; height: 200px;" >The background color test </div>
<Script>
function  Setcolor ()
{
var  ColorString;
do {
colorString="#" + Math. Floor (math.h random () * math.h pow (2, 24)). ToString (16);

} while  (colorString length<7); document. GetElementById (" mydiv "). Style. The backgroundColor=colorString; setTimeout (setcolor, 100);
}

</script>
</body>

[Ctrl + A selection (note: if you need to introduce external Js to refresh to perform]


This concludes the body part