<html> <head> <title>week03a4.html</title> <script type="text/javascript"> function iro(){ ironame=document.getElementById("ironame").value; document.bgColor=ironame; } </script> </head> <body> <form> ≤input type="text" id="ironame" value="input color name"> <input type="button" value="what color?" onclick="iro()"> </form> </body> </html> |