Solved

Getting rid of all previous frames.

Posted on 1998-06-27
6
143 Views
Last Modified: 2010-04-09
Hi,
    I'm wondering how when someone calls up my frameset page I can boot them out of all the previous frames they were in.
Thanks.
0
Comment
Question by:cide
6 Comments
 
LVL 3

Expert Comment

by:MorFF
ID: 1844416
You could make your initial page a dummy page which immediately calls your frameset page with TARGET='_blank'.  This will give the visitor a new page to view your framesets in all their glory

Cheers - MorFF
0
 

Author Comment

by:cide
ID: 1844417
But how do you make it immediatly goto another page?
0
 
LVL 3

Expert Comment

by:MorFF
ID: 1844418
cide,

stick this in your HEAD

<meta http-equiv="Refresh" content="1; URL=http://www.blah.co.uk/niceframesetpage.html">

the url needs to be the full address/path of your page (substitute 'blah' and 'nice...' accordingly)  the content is the delay before going.

You may wish to put a nice piccy or words in this page as you'll be leaving that copy of the browser open as you jump to the new one.

MorFF
0
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.

 

Author Comment

by:cide
ID: 1844419
How would I do it so it doesn't open a new window?
0
 
LVL 84

Expert Comment

by:ozo
ID: 1844420
TARGET='_top'
0
 

Accepted Solution

by:
Martin Berg earned 10 total points
ID: 1844421
This will work (if you allow javascripts). I have it in all my hompages!

if( top.location != location )
        top.location.href = location.href;

This works with at least Netscape 3.0 and MS IE 4.0
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

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

867 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

17 Experts available now in Live!

Get 1:1 Help Now