Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.opener

Status
Not open for further replies.

DeSn

Programmer
Nov 20, 2001
111
BE
Is there a way to know if a window is opened by antoher window or not? I know you can access that other window by window.opener, but i would like to check on this.

Thanks
 
I've found the solution on the net:

typeof(window.opener) == 'undefined'

Thanks
 
Are you trying to check from the page that opens the window or from the window that's been opened?

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top