<form action="#" name="parentfrm">
<p><input type="button" value="ウィンドウを開いて、親ウィンドウを示す" onclick="fOpener()" /></p>
<p><input type="text" name="txt" size="50" /></p>
</form>
<script type="text/javascript">
var mySelfWindow;
function fOpener(){
mySelfWindow=window.open("","","width=400,height=200")
mySelfWindow.document.write("このウィンドウは、自分自身です。")
mySelfWindow.focus()
mySelfWindow.opener.document.parentfrm.txt.value="これは自分自身を開いた親ウィンドウです";
}
</script>