重新加载父页中iframe的方法

 

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时

你可能感兴趣的:(html)