开发者

Is it possible to get top.location.href when the top frame is on another domain in Chrome?

I just noticed we have been having a bug when we've been using:

top.location = top.location.hre开发者_开发技巧f;

To refresh the outer page. However it seems that Chrome doesn't give you a top.location or parent.location object with properties when the frame is on a different domain. Is there any workaround? This works fine in Firefox.


Doing this seem to accomplish what I want:

top.location.href = ""
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜