PDA

View Full Version : stop frames?


uncledumpy
12-16-2001, 08:27 PM
Hi Guys,

I dick around with HTML, just a little. A while back I moved my home page (www.uncledumpy.com) to frames. BUT If someone follows a link I want to remove the frame. Is there a header or code I put in to remove the frames?

Thanks!

MadMikey
12-16-2001, 11:49 PM
Sure, just use something like this:

<a href="page.html" target="_top">

The target tells the browser which frame to open the new page in. "_top" means to use the entire browser window, thus removing the frames.

Or, you could use "_blank" to open a new instance of the browser.

-tekg0d-
12-17-2001, 01:42 AM
you mean a "break apart from frames" try this:

<script>
<!--
if (window!= top)
top.location.href=location.href
// -->
</script>

its a simple javascript..
and put it in the head section of your page.