I am not very experienced with Javascript and i have implement simple redirection with Javascript but now i want to get URL (previous) when the user will press browser back button after that redirection.
I am trying to get previous URL with "document.referrer" but it is not returning correct previous url.
I am redirecting my web page with this.
window.open('https://weather.com');
But after this redirection when the user will press browser back button, i want to get back this url from my own web page because i want to track that URL and implement some more functionality.
I ll need help to complete this process and i will really appreciate your help.
Thank you!!