tags:

views:

29

answers:

1

How can a browser window know if it is a parent window or a child window using JavaScript?

I was hoping to make use of this in a conditional.

if(parentWindow){//..

Thank you for any help.

+3  A: 
if( window !== top ) 
    //then you are a child of something
geowa4
Awesome, works great. Thank you. :)
Abs