[Pro] How does one link to already open window?

I have a text link in a pop-up window to an internal page. I want the linked page to appear in the window which was left to present the pop-up, not open yet another window.

I can get the linked page to open in a new window using Target: _blank under Edit Hyperlink, but now I have three pages open. I simply want to link back to the the page and have it displayed in the original open window.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you use Spawn New Window to create your popup window, then one of
the fields in the Actions palette that you fill in is called Window
Name. This becomes a JavaScript variable that you can use, and it also
becomes a target you can use when making a link.

There’s a few different ways to use this.

Let’s say you have used Spawn New Window to make a little window
called preview. If you want all preview images to appear in that
window, you simply use that name for each of the other instances of
SNW that you use to open other windows. Now if someone clicks one of
these links, then clicks on the larger page behind the little popup
window (which will have the effect of hiding the popup behind the
larger main window) the next click on one of the popup links will
bring that same hidden window forward, fill it with the new content,
and make it active.

If you aren’t using SNW, you can do something similar with _blank.
Make one window appear with target=“_blank”, then in that new window,
add this script in the Before /HEAD section of Page / HTML Markup:

<script type="text/javascript">
	window.name = 'myNewName';
</script>

Now if you direct a click on another window to target=“myNewName”, the
second window will come forward and show the requested content.

Finally, if you want to link from a “daughter window” (the technical
name for a window that was opened through a script or a target) then
you can use the JavaScript ‘opener’ property to reach it.

From your main window, use SNW to open a sized daughter window. In
the daughter window’s document, use a link like this to change the
content of the main window:

javascript:this.window.opener.location.href='foo/bar.html';

Hope this helps,

Walter
On Jun 1, 2009, at 12:47 PM, James Brouwer wrote:

I have a text link in a pop-up window to an internal page. I want
the linked page to appear in the window which was left to present
the pop-up, not open yet another window.

I can get the linked page to open in a new window using Target:
_blank under Edit Hyperlink, but now I have three pages open. I
simply want to link back to the the page and have it displayed in
the original open window.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options