Reputation: 4267
Basically here is my code (Authenticator.jsp):
window.location.replace("Login.html"); // replace method also takes care of history
window.open ("Main.html", "Welcome logged in user");
Expected behaviour:
Actual behaviour:
Is there a solution for this ? This behaviour occurs in IE6 (I havent checked IE7 and IE8), it does not occur in Firefox and chrome
Upvotes: 1
Views: 540
Reputation: 1733
I think you should call
window.location = "Login.html"
And then move the call to
window.open ("Main.html", "Welcome logged in user");
into the onload event of the Login.html page.
Upvotes: 1