...

View Full Version : Sending URLs to Un-NAMED-ed Windows?



ScottG-D
11-18-2002, 08:24 PM
Hi Folks,

I have a site that opens a map in a popup window. As users navigate this map, they have the option to select various locations. When selected, information regarding the specific location chosen is loaded in the original browser window (*not* the popup map window).

Now, I know that if I myself had generated the original window, I could have named it, and then just pointed URLs to it with the TARGET attribute. Unfortunately, the original window here is the browser window the user started with when they visited the site... so it has no defined name.

I know the DOM supports <opener>, which supposedly refers back to the window that generated a subsequent window -- can someone give me an idea of how to use this? Also, is it possible to call this <opener> via a "javascript:..." line that could be dropped into a TARGET attribute, rather than generated the entire link in JavaScript? Reason: the map in the popup window is Flash, so I only have so many options for sending URLs.

As a backup, is there a way to assign a NAME to a previously existing window? That would easily solve my problem.

...Whew. Thanks for your help. :)

beetle
11-18-2002, 10:06 PM
Originally posted by ScottG-D
As a backup, is there a way to assign a NAME to a previously existing window? That would easily solve my problem.Backup? Isn't that what you want FIRST? Oh, and yes...in popup...

<script>
window.opener.window.name = "winName";
</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum