changeant de couleur en fonction javascript

Dans le code suivant , j'ai une fonction javascript et je suis tring pour changer le backgroundColor de la page pour une couleur passée en tant que paramètre. Mais mon code ne fonctionne pas, quelqu'un peut-il m'aider à ce qui est faux dans mon code?

HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Changing Color</title>
<head>
    <style type="text/css">
        body {
            background-color:#ffcccc;
        }
    </style>
</head>
<body>
    <form>
        <label>color: <input type="text" name="color"> </label>
        <input name="color" type = "button" onClick = "changecolor(color.value) " value = "color">
    </form>
</body>
</html>

Javascript:

function changecolor(colour)
{
    document.bgcolor=colour;
}
InformationsquelleAutor alia | 2011-06-04