Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE11 javascript redirection history issue

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.

like image 520
user3061666 Avatar asked Nov 11 '22 17:11

user3061666


1 Answers

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)
like image 105
towr Avatar answered Nov 15 '22 08:11

towr