Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
4.33/5 (3 votes)
See more: (untagged)
How can i check a window is a popup windows or not ?

When I have got any exception in one common page has come and there is a hyperlink that redirect it to login page. Now if the Exception comes on a Popup windows when i click on that link login page comes inside that popup window.:(

Any idea .

or any other solluation !!!

Posted

1 solution

On click of the hyperlink, call a function containing the following code:
opener.top.location = "LoginPageUrl";
window.close();

This will Redirect the parent window to Login page and close the popup window.

Please let me know if you need something else.

 
Share this answer
 
Comments
Rakshith Kumar 12-Nov-13 4:53am    
5+ . Nice one
  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900