-
Dreaded frames...
Hey all. I have a web site quiz thing which uses frames.
However, during the trip through this 'site', a user gets to a page in the middle frame which then links back to an 'outside' page. I want this 'outside' page to appear in place of the frames page, however I can't get this to work correctly.
_PARENT and _TOP as Targets for that link just make a new window.
So what I've had to do is make a 'top' page which has
<FRAMESET ROWS=*,0>
<FRAME SRC="frames.asp" name=master>
</FRAMESET>
(frames.asp) is the 'frames' page which divides into 3 frames.
So now I can use TARGET='master' in any link in the frames and I get the desired result, however my window shrinks by a small amount every time I go through this cycle. This is because, although I have requested a frame of 0 height, some space is still allocated for that frame.
Any suggestions???
:confused:
-
method 1:
Code:
<html>
<head>
<script language="javascript">
function ShowTop(nHref){
top.location = nHref;
}
</script>
</head>
<body>
<a href="javascript:ShowTop('http://www.vb-world.com')">Make top</a>
hello
</body>
</html>
-
Unfortunately, I can't use your suggestion Jem, Netscape doesn't like it, and won't load anything without the '0' in the rows tag.
This solution works for IE though. But I can't have nothing appear in Netscape browsers.
I shall try the other.
Thanks all.
:)
-
da_silvy to the rescue!
Thanks - your solution works like a charm.
:D
-
No probs, I was looking for the _top method for the target thingo, but you said it didn't work so i just did it a different way for you