Destroy Iframe

In Firefox, an iframe cannot be really destroyed if you use delete keyword. (My version is Firefox 3.63 under Windows XP, 2011/11/14.)

I've issued a bug to Mozilla. (


  1. Use Firefox to browse this page.
  2. Press "Create Iframe"" button.
  3. Press "Insert HTML" button.
  4. Press "Destroy Iframe" button.
  5. Press "Create Iframe" button (Again).
  6. Press "Insert HTML" again, your browser reports an error. This won't happen in other major browsers including IE.