[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

Prevent 3th party sites from opening full screen

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
Trutje
Asked:
Trutje
1 Solution
 
shalomcCommented:
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
 
COBOLdinosaurCommented:
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
 
pcumberbatchCommented:

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
 
ZylochCommented:
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
 
Ruff-RyderCommented:
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now