搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

history.go() doesn't work in mozilla

  • 1 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 vesna1

more options

history.go() doesn't work in mozilla, for instance : you are on page home.com, then you go to page home.com/x and then to home.com/x?x=0, after histoy.go(-2) you are going to home.com but if you click F5 you are going back one page?!?! It even works in IE.... :'(

history.go() doesn't work in mozilla, for instance : you are on page home.com, then you go to page home.com/x and then to home.com/x?x=0, after histoy.go(-2) you are going to home.com but if you click F5 you are going back one page?!?! It even works in IE.... :'(

所有回覆 (1)

more options

Event window.history.go() works on back button click(detecting with on 'popstate'),so when i change that and make some custom button on page with same event-it works! But still, it would be much better when it would be on real back btn...