如何让 Opera Javascript 保存重定向到历史记录以便history.go(-1) 工作?
我正在使用 window.location* 跨多个页面进行重定向。
有 3 页,a、b、c。
a 链接到 b b 重定向到 c
然后我在 c 中使用 History.go(-1) 从 c 返回到 b,但在 Opera 中它会转到 a。
在 Opera 中什么会起作用?这在 IE8 和 Firefox 中是有效的,正如它应该的那样。
(* 也尝试了 window.location.href,仍然不起作用。 window.location.replace 不起作用,因为它会从历史列表中杀死 c ) )
I am using window.location* to redirect across a number of pages.
There are 3 pages, a, b and c.
a links to b
b redirects to c
I then use history.go(-1) in c to go back from c to b but in Opera it goes to a.
What would work in Opera? This works in IE8 and Firefox, as it should.
(* tried window.location.href too, still does not work.
window.location.replace would not work because it would kill c from the history list)
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你试过把它绑在窗户上吗?
Did you try to tied it to the window?