Make sure the link in the menu frame obtains the referrer variable and passes that in a call to load the target frame (second frame). The link in the menu should be something like
Code:
<a href='pagetoload.asp?strref=referrer' target="second_frame_name">Menu Text</a>
, where strRef is the value of the referrer and second_frame_name is the name of the target frame.
The pagetoload.asp script must then make sure to examine the parameters passed to it. For example:
VB Code:
<%
' pagetoload.asp file
' Find the value of the strRef (referrer), if any given.
strRef = Request("strref")
' Now set up a template string.
If Trim(strRef) <> "" Then
strOutput = "You came from <b>%ref%</b>."
Else
strOutput = "You came from nowhere."
End If
' Here we replace the %ref% placeholder
' with the real referrer.
strOutput = Replace(strOutput, "%ref%", strRef)
' If you want to out put the text:
Response.Write strOutput
%>
Hope this helps ya. (I am not a lean-mean ASP-coder, but I think this code would work).