Y
Yaron C.
Hi,
I have window A, which open popup A which Open popup C.
In the two popups I use a common JavaScript file and in order to
distinguish between them I use the following code:
if (typeof(opener.opener)=="object") {
alert("1");
}
else if (typeof(opener)=="object") {
alert("2");
}
The problem is that I get "1" for both popups.
I.e. "opener.opener" exists also for popup A.
Any ideas ?
Thanks,
Yaron
I have window A, which open popup A which Open popup C.
In the two popups I use a common JavaScript file and in order to
distinguish between them I use the following code:
if (typeof(opener.opener)=="object") {
alert("1");
}
else if (typeof(opener)=="object") {
alert("2");
}
The problem is that I get "1" for both popups.
I.e. "opener.opener" exists also for popup A.
Any ideas ?
Thanks,
Yaron