By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,183 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,183 IT Pros & Developers. It's quick & easy.

close popup window and redirect the main page

P: 42
hi all,
i am developing an Application. when i am clicking a link , it opens a pop up (login page). after successfull login , the disignated url opens in the popup window. this is a problem. i want after login it should close the popup window. and open the designated url in the same page.

my popup page is login.aspx .

i am opening the pop up using javascript.
closing the popup by: self.close() method. then if i use to open a page , but it opens in a new page. which in dont want. i am using master page in
Dec 1 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Use window.opener to refer to the parent window, so you could use something like:
Expand|Select|Wrap|Line Numbers
  1. window.opener.location.href = url;
Dec 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.