a.php中设一下
<input type=hidden id=hidMobile>
b.php的脚本parent.document.all.hidMobile.value = document.all.idaddress.value;

解决方案 »

  1.   

    parent.document.all.hidMobile.value = document.all.idaddress.value;
    这一句在b.php中怎么写啊?
      

  2.   

    parent.document.all.hidMobile.value = document.all.idaddress.value;
    这一句在b.php中怎么写啊?
      

  3.   

    在 a.php 里:
    <iframe name=iframe1 src=b.php></iframe>var str = window.frames["iframe1"].document.all.idaddress.value;
      

  4.   

    基本同意快乐王子的方法。他说的b.php的脚本可以这样<input id="idaddress" type="checkbox" name="mobile" value="111" onchange="parent.document.all.hidMobile.value = document.all.idaddress.value">
      

  5.   

    a.php里还是没有取到值啊?
    <input id="idaddress" type="checkbox" name="mobile" value="111" onchange="parent.document.all.hidMobile.value = document.all.idaddress.value">这个CHECKBOX是要通过表单提交的,也就是说a.php里
    <form name="addrlist" method=post action="javascript:UpdateAddressList('a')">
    那么这里的JS里的这个值a如何能是刚才在checkbox中也到的呢?
      

  6.   

    test.htm<body> 
    <iframe id="iframeID" height='100' src="1.htm"></iframe> 
    1.htm <body onload="parent.window.document.all.iframeID.height=document.all.bd.clientHeight + 40"> 
    <table id=bd> 
    <tr> 
    <td> 
    <p>灰豆宝宝.net<p>灰豆宝宝.net<p>灰豆宝宝.net<p>灰豆宝宝.net<p>灰豆宝宝.net
    <p>灰豆宝宝.net<p>灰豆宝宝.net<p>灰豆宝宝.net<p>灰豆宝宝.net<p>灰豆宝宝.net</td> 
    </tr> 
    </table> 
     就可以实现了.
      

  7.   

    Sorry ,发错地方,
    请见谅...
      

  8.   

    回答一下,框架间的传值是这样子的:
    取得框架的值var v=parent.frmanename.document.form1.gnmc.value