PDA

View Full Version : Help with getting back to a Framed content page



NGJ
01-04-2006, 04:44 PM
Hi,

Assuming the user has clicked off to another page (which then has a further 'next' page), is there a way I can point the user 'back to' the original page if it was in a Frame?

I appreciate I could use the method:
a href="javascript:history.go(-2);"

- though this will not work correctly if the user has two'ed & fro'ed on the divert page as the '-2' may not then be the original page.

I guess what I'm asking is, how do I address a specific 'back to' via a href ?
i.e specific call of Frame within an html page - rather than the default Frame when first visited?

a href="main_page.htm[specific frame page.htm]"

Thanks in advance!

Twey
01-04-2006, 06:43 PM
Other than history.go(), there is no client-side way of sending the user backward. I suggest that you store the user's history in some way, possibly in a cookie or session, and use that to judge what "back" is.

jscheuer1
01-05-2006, 05:54 AM
If your object is not sending the user 'back', but rather sending the user to a page in a frame of a frameset, you could make up another, nearly identical, frameset that has the page you want as the src of the frame in question and link to that frameset.