Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anchor on reload

Status
Not open for further replies.

Muddmuse

Programmer
Jul 31, 2001
85
US
I have a web page with multiple anchor tags. This page contains links that popup a window with a form on it. When the form in the popup has been submitted I need to reload the parent:

self.opener.location.reload(true);

This works fine but even though the anchor is at the end of the url in the parent window the page is not taken to the anchor on reload but to the top of the page. Any ideas why?
 
When you reload the page, it doesn't have know any different so it loads like any other page. You're going to have to put aditonal anchor tags that refer to page labels, and call the parent page with something like this: index.html/#level4 where #level4 is a label you placed on the page.

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top