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

x
?
Solved

Can't remove "FRAMES" with Window-target: _top

Posted on 1997-12-03
2
Medium Priority
?
202 Views
Last Modified: 2008-02-01
I want to prevent other sites from FRAMING my web site.  I was on a great web page which gave many techniques as to solve this problem.  One of the techniques was to use CGI and an HTTP HEADER:  Window-target: _top.

It sounded great but it didn't work!  Did I do something wrong?  No error messages poped up or nothing.  Just it won't prevent my web site from being framed; I can frame my web site at will with the technique or not.

I have my test web site up right now.  If you'd like you can go check it out.  It immediately appears in frames and once you click the hyperlink, it calls the CGI program and it returns back the useful page data.  I did this to represent another website that is in frames and is calling my web site by clicking on a hyperlink.

If theres anything you can tell me that can help me to get this problem solved I'd be forver grateful.  

My web site is: http://www.webquarry.com/~tempest
*Try it out to see the problem I'm talking about.*
0
Comment
Question by:mirror
2 Comments
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1842114
hmmm, would be a JavaScript solution acceptible for you?
0
 
LVL 6

Accepted Solution

by:
alamo earned 200 total points
ID: 1842115
Again...

It is being overridden by the explicit 'target="main"' in your link. If you remove the target, and just make the link a non-targeted one which would normally load into the same frame, then your page jumps out of the frames (but not with IE).

Between this and the two methods I suggested in my comment in the other question (javascript on the top page and explicit 'target="_top"' for links deeper into your site) you will be as close to frameless as you can get.

Good luck!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

834 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