Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是否可以在iframe中获取一个页面来刷新整个主页?_Iframe - Fatal编程技术网

是否可以在iframe中获取一个页面来刷新整个主页?

是否可以在iframe中获取一个页面来刷新整个主页?,iframe,Iframe,目前,我运行wordpress博客,让用户在iframe中进行身份验证。但是,侧栏中的信息不会刷新。有什么方法可以将整个页面重定向到 登录后?您可以设置parent.location parent.location='1〕http://wordswithfriends.net/?page_id=386';或者更简单,你就不能这么做吗?:parent.location=parent.location.href@sdleihsirhc因为他也说了“重定向”,我不确定他是想让页面“刷新”到自己还是另

目前,我运行wordpress博客,让用户在iframe中进行身份验证。但是,侧栏中的信息不会刷新。有什么方法可以将整个页面重定向到


登录后?

您可以设置
parent.location


parent.location='1〕http://wordswithfriends.net/?page_id=386';

或者更简单,你就不能这么做吗?:
parent.location=parent.location.href
@sdleihsirhc因为他也说了“重定向”,我不确定他是想让页面“刷新”到自己还是另一个URL。我基本上想能够发送它anywhere@delta如果是这样的话,将
parent.location
设置为所需的URL应该适合您。