IE11 javascript redirect history issue

Is there a way in IE11 to redirect via JavaScript from pageAto pageB, and pageAstay in the story?

If I have in code pageAlike this:

this.location = "pageB.htm";

In any IE 8/9/10, it redirects to pageB.htm, but pageA.htmremains in history.

I can return to it using the back button, using history.go (-1), etc.

In IE11, however, pageA.htmdoes not remain in history.

I've tried every way I know: window.location, window.location.href, document.locationetc. Etc...

None of them hold a redirect page in history.

Thanks for any suggestions.

+5
source share
1 answer

I would give the window.open function a try http://www.w3schools.com/jsref/met_win_open.asp

window.open('pageB.html','_self', null , false)
+1
source

All Articles