Removing Frames -
07-21-2009
, 05:59 AM
I have a page where I need to display the contents in two frames ('topFrame'
and 'bottomFrame'). The contents of 'bottomFrame' are provided by a client
and are on a different domain from the domain that contains the frameset
page.
I need the option of having the user break out of the frames at any point in
order to show the content of 'bottomFrame' out of the frameset. I have a
link on 'topFrame' to do this in Javascript i.e:
<a href="javascript:top.location.href=top.frames(1).l ocation.href;">Remove
frame</a>
This works fine when 'bottomFrame' is displaying a page within the domain
containing the frameset but fails to work when 'bottomFrame' contains the
contents of the clients page (i.e. client page on a different domain) or
any page from a different domain. A permission denied error occurs.
I know frames are the work of the devil but I really need to use them in
this instance.
Any ideas how I can get around this please? |