|
-
May 25th, 2005, 08:51 AM
#1
Thread Starter
Lively Member
iframe
in the main page there are
Code:
<html>
<body>
<iframe name="footer" src="new_page_4.htm">
</iframe>
</body>
</html>
in "new_page_4.htm" there are :
Code:
<Script>document.location.href='1.html'</Script>
the problem is when the main page loaded the page "1.html" show in iframe (footer) .. what is the code which make the page "1.html" show in the main page . ??
Last edited by ayman_rapper; May 25th, 2005 at 08:54 AM.
-
May 25th, 2005, 09:22 AM
#2
Re: iframe
Well, you could try using the parent key word and see if that works 
Code:
<Script>parent.document.location.href='1.html'</Script>
Cheers,
RyanJ
-
May 25th, 2005, 09:26 AM
#3
Fanatic Member
Re: iframe
try putting this in the iframe page (in the header):
Code:
<base target="_parent">
-
May 25th, 2005, 10:57 AM
#4
Thread Starter
Lively Member
-
May 25th, 2005, 11:01 AM
#5
Re: iframe
 Originally Posted by ayman_rapper
doesn't work .......
Did you try both of the examples...?
RyanJ
-
May 25th, 2005, 11:02 AM
#6
Thread Starter
Lively Member
Re: iframe
this is the code of the main page
Code:
<html>
<head>
</head>
<frameset cols="152,*" border=0>
<frameset rows="120,*" border="0">
<frame name="pic" src="st_picture.asp" noresize scrolling="no" marginwidth="0" marginheight="0" >
<frame name="rtop" src="left4.asp" noresize scrolling="no" marginwidth="0" marginheight="0">
</frameset>
<frameset border="0" rows="80,*,40" marginwidth="0" marginheight="0">
<frame name="banner" scrolling="no" noresize src="banner.asp" marginheight="0" marginwidth="0" target="contents">
<frame name="left" noresize src="main4.asp" scrolling="auto" marginwidth="0" marginheight="0" target="main">
<frame name=footer src=footer.asp marginwidth="0" marginheight="0" noresize scroll=no target="_self">
</frameset>
<noframes>
<body >
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>
-
May 25th, 2005, 11:23 AM
#7
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|