<script> function foo() { var color = document.getElementById("select").value; document.getElementById("p").innerHTML = "Your favorite color is: " + color; }
</script>
</body> </html>
How to have body background same as selected color ?
E.g. If you select the red color, body background should be red...