Click to See Complete Forum and Search --> : Acessing current location of another frame


imanta
09-08-2003, 02:41 PM
I have a frameset , left hand nav frame and right is content. I would like to have a button in my nav frame that will close the frame and leave the user at whatever the current site is in the main window. Is it possible to get the current URL location of the main window? If they click close I can just renavigate the whole browser to that location.

Thanks.

Khalid Ali
09-08-2003, 03:02 PM
if you have frames and you want to get the location of any frames

parent.framename.location.href

will give you that

imanta
09-08-2003, 03:41 PM
I always get a permission denied on this. Can you get the location if it is another server's site? Like if the frame is google.com?