これがあなたのために働くかどうか見てください:
このparent.htmlページを作成し、iframeウィンドウから渡された値を表示するテキスト入力を含むiframeをそのページに配置しました。
 <html>
     <head>
     <title>IFrame Example</title>
     <script language="javascript">
          function hello(string){
               var name=string
               document.getElementById('myAnchor').value=name;
           }
     </script>
     </head>
     <body>
         <iframe namne="iframe" id="iframe_id" src="inputForm.html" height="150" >
         </iframe>
         Name: <input type="text" id="myAnchor" >
         </body>
</html>
そしてこのiframe contentページ:
<html>
   <head>
   <title>IFrame Child Example</title>
   </head>
   <body>
   <form name="frm2" >
      <h1><font color="#000099">Input Form</font></h1>
      <p>Name : </p><input type="text" name="resp" id="input" value=""/>
      <input type="button" onclick="parent.hello(this.form.resp.value);" value="Submit" />
   </form>
 </body>
</html>
ボタンをクリックすると、親ウィンドウに値が表示されます。
これで何かを手に入れたら、それで遊んでください。