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="JavaScript" FOR="window" EVENT="onfocus()">
top.frames.title.location="ResultTitle.html"
</script>
<script LANGUAGE="JavaScript" FOR="window" EVENT="onload()">
top.frames.title.location="ResultTitle.html"
</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
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="JavaScript" FOR="window" EVENT="onfocus()">
top.frames.title.location="ResultTitle.html"
</script>
<script LANGUAGE="JavaScript" FOR="window" EVENT="onload()">
top.frames.title.location="ResultTitle.html"
</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