用javascript:
window.top.location.reload(); 或:window.parent.location.reload();
具体实例如下:
main页面:
<BODY>
asf sdfasdf
<iframe src="A.html">
</iframe> //引入A.html
</BODY>
A.html页面:
<script>
function re(){
window.top.location.reload();
}
</script>
<BODY>
<a href="#" οnclick="javascript:re()">hhhhhhhhh
hhhhhhhhhhhhhhh</a>
</BODY>
这样话就会刷新父窗口啦..
window.top 当前窗口的最顶层窗口
window.top.location.reload(); 或:window.parent.location.reload();
具体实例如下:
main页面:
<BODY>
asf sdfasdf
<iframe src="A.html">
</iframe> //引入A.html
</BODY>
A.html页面:
<script>
function re(){
window.top.location.reload();
}
</script>
<BODY>
<a href="#" οnclick="javascript:re()">hhhhhhhhh
hhhhhhhhhhhhhhh</a>
</BODY>
这样话就会刷新父窗口啦..
window.top 当前窗口的最顶层窗口
注意:不能跨域获取,例如iframe的src是'http://www.xxx.ccc/'就不可以