Trying to write something where, after you have entered in a hex color, and clicked the "change color" button, it changes your background color to 'x' hex color.

Thanks, i'm a noob!

<html>
<head>
<title>This is a test-site</title>
<script type="JavaScript">
function colorchange()
{
document.bgColor = color;
}
</script>
</head>
<body bgcolor="#708090">
<form align="center">
HEX Color: <input type="test" name="color" id="color" value="" />
</form>
<button type="button" onclick="javascript:colorchange('')">Change Color</button>
</body>