Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_objects thread: window.opener OBJECT


Message #1 by "Paul-Emanuel Caloianu" <p.caloianu@m...> on Wed, 10 Oct 2001 18:00:41
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)

  Return to Index