title: HTML5 Canvas not clearing
body: <p>I am using every possible method to clear out the canvas but no luck. As soon as I click back on the canvas, all the previous drawings reappear. </p>
  
  <p>Here is the code.</p>
  
  <pre><code>function clearCanvas() {
  
      //clickX = [];
      //clickY = [];
      //clickDrag = [];
      //context.clearRect(0, 0, canvas.width, canvas.height);
  
      //curColor = colorBlack;
      //redraw();
  
      //clickX = new Array();
      //clickY = new Array();
      //clickDrag = new Array();
  
      context.fillStyle = '#faebd7'; 
      context.fillRect(0, 0, canvas.width, canvas.height); 
      canvas.width = canvas.width; 
      //context.beginPath();
  
  };
  </code></pre>