user3061666
user3061666

Reputation: 63

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.

Upvotes: 5

Views: 1664

Answers (1)

towr
towr

Reputation: 4167

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)

Upvotes: 1

Related Questions