<html>
<head>
<script>
function removeFrame() {
var f = document.getElementById("frame1");
document.body.removeChild(f);
}
</script>
</head>
<body onload="removeFrame()">
This page removes its blank iframe on load.<br>
<iframe id="frame1"></iframe>
</body>
</html>