I am trying to make a greeting card generator. What is supposed to happen is that when the user clicks the "make card" button, The "Greeting Card" drawing will appear on the screen but so far, nothing happens. Also I would like it so that the div1 and div2 disappear when the button is clicked so that only the greeting card drawing remains on the screen. How would I do that? Thanks a lot for your help in advance.
<html>
<head>
<title>Greeting Card Generator</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript">
function draw() {
var c=document.getElementById("myfillDrawing");
var ctx=c.getContext("2d");
ctx.strokeStyle= "#FF0000";
ctx.lineWidth = 10;
ctx.strokeRect(125, 25, 150, 50);
ctx.fillStyle = "blue";
ctx.font = "22px Arial";
ctx.fillText("Greeting Card", 135, 55);
</script>
<style>
#div1{
background-color: cyan;
font-family: "Arial Black", Gadget, sans-serif;
font-size: 24px;
text-align: center;
border: 25px solid red;
padding: 25px;
width: 50%;
margin: 0 auto;
}
#div2{
background-color: cyan;
font-family: "Arial Black", Gadget, sans-serif;
font-size: 24px;
text-align: center;
border: 25px solid orange;
padding: 25px;
width: 50%;
height: 300px;
margin: 0 auto;
}
</style>
</head>
<body>
<div id="div1">Greeting Card Generator</div>
<div id="div2"> Content Goes Here
<br>
<input type="button" value="make card" id="draw" onclick="draw();">
</div>
<canvas id="card" width="400" height="100"></canvas>
</body>