<body onload="window.close()">
<iframe src="ping-error-frame.html"></iframe>
<script>
function frameUnloaded()
{
    var img = document.createElement("img");
    img.src = 'does-not-exist.jpg';
    document.body.appendChild(img);
    opener.done();
}
</script>
