Solved

Prevent 3th party sites from opening full screen

Posted on 2004-04-13
7
189 Views
Last Modified: 2010-04-09
Hello,

I am trying to make a bookmark manager. A site that is DB driven (ASP) and it has a layout of two frames. A narrow left one that holds the links and a whide right one that shows the klicked sites. But some sites (external ones) make my leftframe disapear and open fullscreen in the explorer window. Can I prevent them doing this with my frame?

The sollution can be a javascript as well

Thanks,

Tr
0
Comment
Question by:Trutje
7 Comments
 
LVL 33

Accepted Solution

by:
shalomc earned 250 total points
ID: 10820710
Sorry, any framed window can be made to break out of the frame. Since you cannot control the scripting on third party sites, you cannot block this functionality that eventually runs on the user's computer.

ShalomC
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 10828161
Why would you think you can control the presentation of another site.  You do not own that content, and you have no right to lock it into a frame to hold users on your site will you use some else's content.  Fortunately browsers have the necessary builtin safeguards necessary to allow sites to protect their content from this sort of thing.  

If you want to use content from another site; ask permission, and maybe they will partner with you.

Cd&
0
 
LVL 4

Expert Comment

by:pcumberbatch
ID: 10836747

COBOLdinosaur says it -

Alternative - provide screen shots of sites and a note saying click to open in another window and setup your links to open external sites in their own window.

You will find that even sites that don't currently break out of frames may do so in the future and the operation of others may be grossly undermined by framing, especially when they use frames themselves.  You may even run yourself into trouble if the site owners get bad reports about their site and trace it back to links from your site.

PC
0
 
LVL 36

Expert Comment

by:Zyloch
ID: 10846320
Holding a site in your frame isn't really ethical. I know sites like Google do it, but that's only when they translate and provide a service for you.

Besides, there are ways to use JavaScript to make it so that it is impossible to hold a site in a frame.
0
 
LVL 1

Expert Comment

by:Ruff-Ryder
ID: 10852820
Why don't you just make it open in a new window? That way your site would be open, and so would theirs. I mean...It's as simple as that. (or you could just ask them).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
After moving to webstite page stopped working 7 85
Printing a Google Form 2 25
Asp.net mvc foreach 3 35
How to avoid jquery conflicts in Wordpress ? 4 24
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now