<html>
<head>
 <title>week03a4.html</title>
 <script type="text/javascript">
    function iro(){
       ironame="#";
       for(i=0;i<6;i++){
         ransu = Math.floor(Math.random()*16);
         ironame += ransu.toString(16);
       }
       // alert(ironame);
       document.bgColor=ironame;
       setTimeout("iro()",1000);
    }
 </script>
</head>
<body>
 <form>
  <input type="button" value="what color?" onclick="iro()">
 </form>
</body>
</html>