How can i redirect to a new page. Is that using
location.href = 'http://www.mypage.com';?

But i have a page which is a login page, when the user enter the id and password, it should redirect to the new page.

Is there any way that i could put the other page(new) in between the login and destination page?

Before displaying the destination page it should display the intermediatepage.

Can any one please help me with this?

Thank you