フォーカスを iframe の内側から外側のウィンドウに戻したい場合、外側のウィンドウ自体にフォーカスを当てても、ユーザーに視覚的なフィードバックを与える可能性は低いため、外側のページにある既知のフォーム要素にフォーカスすることをお勧めします。
これは次のように行うことができます。
outer.html
<html>
<head>
<title>Outer</title>
</head>
<body>
<iframe id="iframe" src="inner.html">
</iframe>
</body>
</html>
inner.html
<html>
<head>
<title>Inner</title>
</head>
<body>
<form id="innerForm">
<input type="button" id="innerButton" value="Inner button" />
</form>
</body>
<script type="text/javascript">
// When we click the inner button...
document.getElementById('innerButton').addEventListener('click', function() {
/*
* Do whatever you need to do here
*/
// Focus the parent
parent.focus();
});
</script>
</html>