As if to add a condition, which transition from a certain page?

Hello. Need to solve a simple problem : need to track which page we switched to a different page. For clarity on the new page text to display the url of the page from which you came. Help?)
July 9th 19 at 10:44
2 answers
July 9th 19 at 10:46
When loading the page to read the url from localstorage, then write back the new
July 9th 19 at 10:48
There was such a hole with
window.opener.location.href
you could see last page.
Another option is to read the story.

Find more questions by tags JavaScriptjQueryWeb Development