troubleshooting Question

popup for web application

Avatar of thiver
thiver asked on
4 Comments1 Solution414 ViewsLast Modified:

I need a some javascripts that open a popup window when the user clicks a hyperlink and redirects the main window to a certain page.

<a href="index.php?check=true&target=manager&action=open" onClick="'manager.php',...)>link</a>

(this works)

But I want that the main window redirects to page A when the popup is succesfully opened, if the popup didn't open (it's the main interface of the application), the main window should be redirected (window.location or something)  to page B. And finally, the main window should go to page C when the popup is closed. It's important that the popup stays focused when the main window is redirected to page A for example. I tried window.opener.location, but the main window receives focus when it's edited.

In short

1) open popup when user clicks link
2) if popup is success -> redirect main window to page A
3) if popup isn't success (by a popup blocker for example) -> redirect main window to page B
4) if popup is closed by user -> redirect main window to page C

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros