you'd be better off using try and catch
try{
//code refrencing window.opener here
}
catch(e){
//code for when window.opener does not exist
}
finally{
//code to be carried out regardless
}
-----Original Message-----
From: Paul-Emanuel Caloianu [mailto:p.caloianu@m...]
Sent: 10 October 2001 19:01
To: JavaScript Objects
Subject: [javascript_objects] window.opener OBJECT
How can I verify if window.opener is not null?
I have tried to do like this:
if (window.opener) {
}
or like this:
if (window.opener != null) {
}
But is not working :(((((
Thank you...
(Paul)