Click to See Complete Forum and Search --> : Refresh : Frame within Frame


riteoh
02-15-2006, 04:08 AM
Hello,

I am a very novice HTML programmer, trying to design a site for my wife's business.

The site is all in frames, and on one page I am using a refresh statement to return to the home page, but as all the pages are in frames, this is reopening the home page inside the original frame, so I have duplicate top and left frames inside each other.

I am using the statement
<meta http-equiv="Refresh" content="10;URL=http://www.mysite.com/"> - Is there anyway I can get this to open in a new frame, and not inside the existing frames?

Thanks,

Fang
02-15-2006, 06:06 AM
Place this in the frameset document:<script type="text/javascript">
if (top.location != location) {
top.location.href = location.href;
}
</script>

riteoh
02-15-2006, 06:38 AM
Tried this... still getting frames within frames.

Any other suggestions?