I can't get the original code that is supposed to make the background green when you press the button and I can't figure out how to add the gradient as the color. Please help!
here is my code:
<html>
<body>
<button onclick="myFunction()">Green <em>Gradient</em></button>
<script>
function myFunction()
*/I want this to be a gradient, but I cant figure out how/*
{
document.body.style.backgroundColor= "green";
}
</script>
</body>
</html>