Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

referencing pop-ups (attempt #2)

Status
Not open for further replies.

pygmalion3

Technical User
Joined
Dec 28, 2001
Messages
7
Location
US
I'm having the hardest time finding out how to focus specific pop-ups on command.
I'm told that if I name the window attributes upon opening, like so:
WindowName=window.open("doccument.html")
that I can reference that window from other windows. Also that I can re-focus said window by referencing an object in that window's content, and perhaps even a simple href like this:
a href=javascript:WindowName.focus()
Well, not only have I yet to get ANY of these techniques to work, but my opener window I use for these pop-ups changes upon their use. Does that mean, since the script it no longer there, that the new pop-up's attributes are no longer named?

This is driving me nuts. Please take pity on this javascript-challenged rookie.
 
you could try to define that names from the popups in the newdocument in opener window:

if (!opener.WindowName) opener.WindowName=self;

this stuff have to be working.. we all use it Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top