Is there a way in IE11 to redirect through JavaScript from pageA
to pageB
, and pageA
to remain in history?
If I have in pageA
code like this:
this.location = "pageB.htm";
In any IE 8/9/10 it redirects to pageB.htm
, and pageA.htm
remains in history.
I can go back to it with the back button, with history.go(-1) etc.
In IE11 however, pageA.htm
does not remain in history.
I have tried all the ways that I know: window.location
, window.location.href
, document.location
, etc... etc...
None of them keeps the redirecting page in history.
Thanks for any suggestions.
I'd give the window.open function a try http://www.w3schools.com/jsref/met_win_open.asp
window.open('pageB.html','_self', null , false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With