登录页面:login.html
主页:main.html(有三个iframe页面:a.html;b.html;c.html)
想从a页面中跳转到login.html
在a.html页面中:
window.οnlοad=function(){
if (top.location.href != location.href) {
top.location.href ="../login.html";
}
}
参考:https://blog.csdn.net/qq_22008739/article/details/81164493