I wanna change the background color of the page using the user input. here's my code so far..
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<script type = "text/javascript">
function paintIt(){
color = prompt("Enter the color you want on the Background???");
switch (color){
}
}
</script>
<form>
<input type = "button" value = "Paint Me" onclick ="paintIt()">
</form>
</body>
</html>
and my just simple css
html {font-family:Arial, Helvetica, sans-serif; colour:#fff;}
body{background-color:#ccc; margin:0;}
Thanks