<html> <head> <script> function init() { window.removeEventListener("load", init, false); var fr = document.getElementsByTagName("iframe")[0]; var b = fr.contentDocument.body; fr.parentNode.removeChild(fr); b.parentNode; } window.addEventListener("load", init, false); </script> </head><body><iframe></iframe></body></html>