I have a problem as following...
# I have stored some value in session to reach a Page "A"
# I have other pages "B", "C", "D".
# If I am moving from Page "A" to "B", I should not clear my session value but If I am moving from "A" to "C" or "A" to "D", then I have clear some values in session.
# I have clear it on body unload of "A" on condition. Is there any way to find the URL which I am landing via javascript? Is there any other way or work around to solve this problem.
Note: I have menu in my left frame and content in right frame. All my links to move from "A" to "B", "C" and "D" are in menu.
balakumar1982
0
Newbie Poster
Recommended Answers
Jump to PostThe URL of the document that the browser is currently viewing is in the property
window.location.href
Jump to PostIn Javascript, you cannot find where the user is going to go next, unless you strictly control the user's movement; something that you can only do within the realms of them navigating using your own controls.
i.e. it's not possible, unless it would suffice to only be notified of …
All 5 Replies
MattEvans
473
Veteran Poster
Team Colleague
Featured Poster
balakumar1982
0
Newbie Poster
MattEvans
473
Veteran Poster
Team Colleague
Featured Poster
balakumar1982
0
Newbie Poster
MattEvans
473
Veteran Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.