记得在父页面好像可以直接访问 iframe 里的变量.另外, 你也可以把变量写入 iframe 里的 hidden域中. 然后在主页面读取.
刷新就不用说了吧? 读取完后reload() 就可以了.
<iframe src='about:<input id=nn type=hidden value=100>' id=yy></iframe>
<button onclick=alert(yy.nn.value)>获得</button>
刷新就不用说了吧? 读取完后reload() 就可以了.
<iframe src='about:<input id=nn type=hidden value=100>' id=yy></iframe>
<button onclick=alert(yy.nn.value)>获得</button>
parent.document.newObject = obj;然后在父叶面读出document.newObject
parent.form1.submit();
parent.function();//调用父业函数
parent.form1.submit();
parent.location.reload()top.location.reload()