|
Posted by Richard Cornford on October 8, 2005, 3:02 pm
Please log in for more thread options
opt_inf_env@yahoo.com wrote:
> I have created a page consisting of two frames. The second
> frame is made to display "external" sites (i.e. written not
> by me, for example www.google.com). But I found that some
> "external" pages (for example www.hotmail.com ) do not
> "want" to be displayed in my frame. They take the whole
> windows. Does anybody know why?
It is javascript, along the lines of:-
<script type="text/javascript">
if(top != window){
top.location = window.location.href;
}
</script>
> Does anybody know whether this problem can be solved,
It is not a problem, it is a reality.
> i.e. whether one can
> force sites to be displayed into the fame?
There is nothing that the creator of the framing site can do to prevent
any page loaded into a frame from re-loading itself in the main window.
If your users don't want this to happen they can disable scripting in
their browsers.
Richard.
|