Possible Duplicate:
get parent.location.url - iframe - from child to parent
Is it possible for a page that's been loaded inside of another page in an tag to find out more about its parent than just the fact one exists?
I know that JS can check if the current page is the top window. If it isn't, chances are it's being loaded in an iframe. But can it find out more? For instance, can it execute some code to find the URL of the top frame?