您的位置:首页 > 其它

重新加载父页中iframe的方法

2011-08-18 16:55 113 查看
1:window.parent.frames[1].location.reload(); //适用于只有一个iframes;

2:window.parent.frames. getAllRoom.location.reload(); //适用于多个或一个iframes;

3:window.parent.frames. [“getAllRoom”].location.reload();

4: window.parent.frames. item(1).location.reload();

5:window.parent.frames.item(‘getAllRoom’).location.reload();

6:window.parent. getAllRoom.location.reload();

7:window.parent[“getAllRoom”].location.reload();

注:第1,4适用于只有一个iframe,当有多个iframe时,坐标应改为第n个,2,3,5,6,7适用多个或者一个iframe时
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: