Is it possible to get last page URL from the history object? I’ve come accross history.previous but that’s either undefined or protected from what I’ve seen.
Share
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.
Not from the
historyobject, but fromdocument.referrer. If you want to get the last actual page visited, there is no cross-browser way without making a separate case based on support for each property.