Forum Moderators: phranque

Message Too Old, No Replies

URL Link Targets Question

         

kevinj

7:55 pm on Dec 3, 2003 (gmt 0)

10+ Year Member



I have a customer who is wondering if the following is possible to do:

Steps
1. The user clicks on a link in the main window and the new page opens up in a new browser window.

2. If the user then clicks on a link in the new browser window, can the browser switch the focus to the main window so the popup window would now appear behind the main window?

I haven't seen this done and my suspicion is it's not possible. I've let them know we could shut the popup window if someone clicked on a link in it.

Any thoughts anyone?

krieves

8:07 pm on Dec 3, 2003 (gmt 0)

10+ Year Member



Call a function on the child page that contains:
window.opener.focus();

That should do it.

kevinj

8:31 pm on Dec 3, 2003 (gmt 0)

10+ Year Member



Thanks krieves! Works perfect. The beauty of JS.