PDA

View Full Version : Java + Html



YUPAPA
July 15th, 2001, 23:20
Can anyone help me?
I have a page that has frames, but want it to redirect to a page that doesn't contain frames.

HOW?

:eek:

meow
July 16th, 2001, 00:19
You mean with an ordinary META Refresh? You put it in the frameset document.
But why? Seems a little odd.
BTW you are in the wrong forum. ;)

YUPAPA
July 16th, 2001, 09:08
HERE I get fast replies!

Yes, but it doesn't make the frames go away if I only put META HTTP-EQUIV="REFRESH" in one of the frames.

Giancarlo
July 16th, 2001, 09:09
This post should be in the Webdesign/HTML Forum...

polestar
July 16th, 2001, 09:34
don't put it in one of the frames - put it in the main <frameset> page's header.

Or do you mean you want it to redirect on a click or an action in one of the frames? I'm confusing myself now!

YUPAPA
July 16th, 2001, 10:58
<HTML>
<HEAD>
<TITLE>Example</TITLE>
<FRAMESET ROWS="80%, *">
<FRAMESET COLS="80%, *">
<FRAME SRC="p1.shtml" name="message" Bordercolor="#AE0000" CELLSPACING="0" FRAMEBORDER="0" NORESIZE FRAMESPACING="0">
<FRAME SRC="p2.shtml" Scrolling="no" Bordercolor="#AE0000" CELLSPACING="0" FRAMEBORDER="0" NORESIZE FRAMESPACING="0">
</FRAMESET>
<FRAME SRC="p3.shtml" Scrolling="no" Bordercolor="#AE0000" CELLSPACING="0" FRAMEBORDER="0" NORESIZE FRAMESPACING="0">
</FRAMESET>
</HEAD>
<BODY BGCOLOR="#000000">
</BODY>
</HTML>

p2.shtml contains META REFRESH, so it takes you to a new page, but unfortunately, p2.shtml doesn't take away any frames (p1.shtml and p2.shtml) after redirecting you on the new page.

What should I put for p2.shtml, so that it takes you to a new page without any frames on it?

gyrbo
July 16th, 2001, 11:05
Place this code in p2.html

<SCRIPT LANGUAGE="Javascript">
<!--
if (parent.frames.length)
top.location.href= self.location;
// -->
</script>

YUPAPA
July 16th, 2001, 11:17
THANK YOU THANK YOU!
It works now!

meow
July 16th, 2001, 11:23
Spould you after all want a Meta Refresh you need to put in in the fremset page. Like so:

<html>
<head>
<title></title>
<META Http-equiv="refresh" Content="5; Url=http://www.yupapa.com">
</head>
<frameset rows="50,*">.......