title: Removing iframe from page
body: <p>I am creating an iframe dynamically for submmiting a form,after submitting i need to remove the iframe form the page.I removed itas follows but it is not removed,</p>
  
  <pre><code>function remove(){
   var frame = document.getElementById("upload_iframe"),
   var frameDoc = frame.contentDocument || frame.contentWindow.document;
   frameDoc.removeChild(frameDoc.documentElement);
  }
  </code></pre>
  
  <p>How to remove the ifarme form the form completely.</p>
  
  <p>Thanks</p>