469,569 Members | 1,503 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,569 developers. It's quick & easy.

Forcing web page to load in a frame.

Hello,
I have a html page with 3 frames. If i specify the source for any
of frames as http://www.gmail.com or http://www.hotmail.com, all frames
go away and the site utilizes the full window. I want these sites to
open in the frames only. Other sites like http://www.google.com opens
in the specified frame (displaying other frames unaffected).
Here is a sample html page.

<html>
<frameset rows="200,*,200" border="1">

<frame name="toolbar" scrolling="no" noresize
src="http://www.yahoo.com" frameborder="1">

<frame name="content" scrolling="yes" noresize
src="http://www.gmail.com" frameborder="1">

<frame name="banner" scrolling="no" noresize
src="http://www.google.com" frameborder="1">

</frameset>
</html>

On above page, yahoo and google opens up perfectly, but for
gmail, it throws a 'Permission Denied' javascript error.
I think its the behaviour imposed by the site and can not be controlled
by us. Any suggestions.

Any help is appreciated.

Thanks.

Jul 23 '05 #1
1 1441
Harshal wrote:
I have a html page with 3 frames. If i specify the source for any
of frames as http://www.gmail.com or http://www.hotmail.com, all frames
go away and the site utilizes the full window.


Yes. They have a frame breaking script.

gmail uses
if (top.location != self.location) {
top.location = self.location.href;
}

Daniel
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by petev | last post: by
1 post views Thread by Bongolation | last post: by
10 posts views Thread by Bernard Davis | last post: by
1 post views Thread by invinfo | last post: by
3 posts views Thread by Daz | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.