<script>
function goBack() {
    window.opener.canExit3 = true;
    window.opener.log("On page-3, going back, now.");
    history.back();
}
</script>
<body>
<iframe src="cached-page-iframe.html" onload="goBack()"></iframe>
</body>
