0

I'm trying to solve this problem:

iOS 7 - is there a way to disable the swipe back and forward functionality in Safari?

I have custom navigation on swipe and if there is history in the tab mobile safari automatically goes back in history. Is there any way to clear the tab history or detect that tab history exists so that it can open the site in a new tab?

Community
  • 1
  • 1
Harry
  • 52,711
  • 71
  • 177
  • 261
  • I don't believe you can clear history, but you could check the history length with `window.history.length` and open a new tab? – Jack May 17 '14 at 20:22
  • @JackPattishallJr. thanks that's a good answer, I would accept it. – Harry May 23 '14 at 17:01

1 Answers1

0

I don't believe you can clear the tab history, but you could check the history length with window.history.length and open a new tab.

Jack
  • 9,151
  • 2
  • 32
  • 44