how to see the current URL from browser?
Is the user coming to my page directly via http://www.mypage.com/myapp or through apps.facebook.com/myapp
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is this javascript?
You can use:
Or:
The first one shows the current location while the second shows (as you asked) where the user came from.
Edit:
I see you tagged as Asp.net, when you are doing client-side coding, there’s no ASP.NET but only javascript (strictly speaking, but ASP.NET may control client side via AJAX/JS).
With my solution above note that you can’t get the browser location if in an iframe (unless on the same domain), due to cross-domain policy.