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)=="objec t") {
alert("1");
}
else if (typeof(opener) =="object") {
alert("2");
}
The problem is that I get "1" for both popups.
I.e. "opener.ope ner" 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)=="objec t") {
alert("1");
}
else if (typeof(opener) =="object") {
alert("2");
}
The problem is that I get "1" for both popups.
I.e. "opener.ope ner" exists also for popup A.
Any ideas ?
Thanks,
Yaron
Comment