Scusate ma io ho un problema.
Devo fare un sito che segliendo il colore che mi dà la pagina deve cambiare il colore dello sfondo della pagina e io ho fatto cos' ma non mi funziona e non sò come mai.
Ecco il codice:


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Esempio JS associato ad onclick</title>
<script type="text/javascript">
function makeRed(x){
obj = document.getElementById(x);
obj.bgColor=document.mio.color.value;
}
</script>
</head>
<body id="corpo">
<form action="/cgi-bin/query" method="get" name="mio" >
Scegli il colore:
<input type="radio" name="color" value="red"> red
<input type="radio" name="color" value="black"> black
<input type="radio" name="color" value="white"> white
<button name="submit" value="submit" type="submit" onclick="makeRed('corpo')"></button>
<button name="reset" type="reset"></button>
</form>
</body>
</html>