Solved

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

Posted on 1997-12-03
2
189 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 50 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Download a website to hdd 2 68
jquery - show / hide div depending on day and time 19 46
AdminLTE with wordpress 15 60
add image on html mail 6 18
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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 …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

773 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