今天遇到了三个问题
在父页面刷新iframe
①:document.getElementById('FrameID').contentWindow.location.reload(true);
②:获取你要刷新的页面的url,document.getElementById('iframe').src = url;
在ifram内改变iframe的src
self.parent.document.getElementById("iframe").src = url;
当登陆过期,仅加载iframe会出现iframe内出现登录页而父页面不刷新的问题
登录页面打开就做以下操作:
if(window !=top){
top.location.href = location.href;
}