a way to monitor child window across opener reloads ?

S

sonic_soul

Hi,
Is there a way to monitor a newly opepend child window with opener,
even when the page keeps reloading ?

Say window A opens window B and gives it a name/handle "myWindow".
At this point anywhere in window A, we could say
myWindow.location.href to find out where the child is.

But what if someone was to take window A to another site, and than
return using history button, OR reload it completely.

upon load the var myWindow would get executed again, and it seems like
the handle would be lost. I tried to see if there was a
window.children collection that might still hold window B in its
subset, but was not able to find a way thus far.
 
R

RobB

Hi,
Is there a way to monitor a newly opepend child window with opener,
even when the page keeps reloading ?

Say window A opens window B and gives it a name/handle "myWindow".
At this point anywhere in window A, we could say
myWindow.location.href to find out where the child is.

But what if someone was to take window A to another site, and than
return using history button, OR reload it completely.

upon load the var myWindow would get executed again, and it seems like
the handle would be lost. I tried to see if there was a
window.children collection that might still hold window B in its
subset, but was not able to find a way thus far.

//------------------------------------------------->

function getWindowByName(sName, sFeatures)
{
return open('', sName, sFeatures || '');
}

//------------------------------------------------->

Still won't help you program a window with content from another
domain, as the "same origin policy" disallows this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top