Thread: Link to top of parent document
Results 1 to 3 of 3
Show page from iFrame url in parent window Forum: HTML ForumReplies: 1
Large upload files causing parent directory to be deleted Forum: CGI Perl ForumReplies: 0
Link to top of parent document Forum: HTML ForumReplies: 0
02-18-2004, 12:10 AM #1
Link to top of parent document
Ok then, here's another problem I'm encountering.
I want to create a "back to top" link on all of my pages within my iframe (all of the child pages). I want this link to point back to the top of the parent page (the page containing the iframe), but keep the iframe on it's current page. That is, link to the top of the parent page without changing anything within the iframe.
I've been fiddling with parent.location.hash and such but can't seem to figure it out.
my webpage is here www.cstrikerun.com
Thanks for help: (i'm making good use of this forum) lol
02-18-2004, 04:04 PM #2
ok since no one knew what I was talking about, or no one knew how to do it lol I will post how I kind of worked around the situation.
In my parent page I put a name attribute on an image I had at the top of my page like so :
<img name="top" id="logo" src="/images/Logohat.jpg" width="980" alt="Cstrike Run">
<a href="/introduction.html" onClick="parent.location.hash='top';">Back to top</a>
I'm not happy with the fact that I have to reference the same page the link is on in order for that event to occur.....but I guess it's ok since it works pretty well.
02-18-2004, 07:06 PM #3