Zoe Brown wrote:
is it possible for an iframe to relaod the parent page if it
is in another domain ?
A script executing in an IFRAME can refer to the global/window object of
the frame that contains it as - parent - and the topmost global/window
in a containing frameset or sequence of nested IFRAMEs as - top -. Those
global/window objects can be navigated by assigning a string
representation of a URL to the - location - property of those
global/window objects as:-
parent.location = ' some URL ';
- or :-
top.location = ' some URL ';
These assignments are allowed cross-domain because there is no security
implication in allowing 3rd party's frames to be navigated (the content
is destroyed in the process).
Assigning to the - href - property of the - location - object may not be
allowed on some browsers because that implies a read operation on a
property of the global/window object and that is often restricted across
domains.
Richard.