开发者

How do I make Opera Javascript save redirects to history so history.go(-1) works?

开发者 https://www.devze.com 2023-01-04 07:28 出处:网络
I am using开发者_如何学运维 window.location* to redirect across a number of pages. There are 3 pages, a, b and 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) )


Did you try to tied it to the window?

window.history.go(-1)
0

精彩评论

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

关注公众号