kill HTML Frames

G

Guest

I have only one page in my asp.net app that requires frames.
How can I navigate away from the page with frames and load a page with no
frames?
I have tried with javascript. In the past I have been was successful, but
now I have lost that technique. My navigation bar is in frame 1 on the left
side.
What can I do?
 
J

Juan T. Llibre

<SCRIPT LANGUAGE="JavaScript">
<!--
if (window != top) top.location.href = location.href;
// -->
</SCRIPT>

The following expressions would also work:

window != parent
self != top



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Page refresh - Alternative to using frames 4
Are frames "out" these days and going forward? 3
Frames vs Master/Content pages 1
Address bar 4
Frames 1
frames in ASP.NET 1
Help!!! Using Frames ASP.NET... 6
Frames 1

Top