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!

Back button issues

Status
Not open for further replies.

tvbruwae

Programmer
Joined
Aug 9, 2001
Messages
224
Location
EU
Hi

I'm using a simple webpage with a "main" frame containing some data and a "title" frame containing a logo and header. When the content of the main frame changes (ie another page is loaded in it) I'm changing the title page as well using javascript :

<script LANGUAGE=&quot;JavaScript&quot; FOR=&quot;window&quot; EVENT=&quot;onfocus()&quot;>
top.frames.title.location=&quot;ResultTitle.html&quot;
</script>
<script LANGUAGE=&quot;JavaScript&quot; FOR=&quot;window&quot; EVENT=&quot;onload()&quot;>
top.frames.title.location=&quot;ResultTitle.html&quot;
</script>

However, when using the Back button (either the one on IE or the one on my pages), only the title frame goes back since it's been loaded after the main frame. I can solve it for my own back buttons (history(-2)), but there's probably another way to do this more elegantly. Any tips?

Thanks,

Tim

 
you could try changing the content of the header frame instead of actually changing the document of the header frame. say, using innerHTML or something like that. Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top