Forum Moderators: open
For some reason the link keeps dropping the anchor bookmark.
<%
Function Leaving
Leaving = Request.QueryString("url")
If Leaving = "" Then
Leaving = Request.QueryString
Else
sBookmark = Request.QueryString("bookmark")
If sBookmark <> "" Then Leaving = Leaving & "#" & sBookmark
End If
End Function
%>
How can I change the code to add the bookmark to the end of the URL?
Regards,
PZNDDQ
This is an important point when using a function in VBScript or Visual Basic. Don't use the return value as a variable--it just gets you into trouble.
<%
Function Leaving
strRet = Request.QueryString("url")
If strRet = "" Then
strRet = Request.QueryString
Else
sBookmark = Request.QueryString("bookmark")
If sBookmark <> "" Then strRet = strRet & "#" & sBookmark
End If
Leaving = strRet
End Function
%>