title: How do I clear text from the <canvas> element?
body: <p>I have put text on an image in a <code>&lt;canvas&gt;</code> tag (the text was taken from an input box).</p>
  
  <p>Now if I put a new text on the <code>&lt;canvas&gt;</code>, it is imposed on the previous text. How do I clear the existing text on the canvas before putting in the new text?</p>
  
  <p>I have tried resetting the canvas by assigning <code>canvas.width</code> but the text stays on. Any help people?</p>