Get URL/Webpage address in Back Button (JavaScript)
-
Hi guys, I would like to inquire how to get the webpage/url address in real time from the back button. As we can see, when we push (down) pull down button in the back button, we can view the previous webpage visited. Is there a way to retrieve the url address in the back button without clicking on a link or a button using javascript? your help would really be much appreciated.:-O :rose:Christina
-
Hi guys, I would like to inquire how to get the webpage/url address in real time from the back button. As we can see, when we push (down) pull down button in the back button, we can view the previous webpage visited. Is there a way to retrieve the url address in the back button without clicking on a link or a button using javascript? your help would really be much appreciated.:-O :rose:Christina
The window.history property is an array of URL strings which reflect the entries in the History object the previous property contains the complete URL of the previous element in the History list, and is the equivalent of the URL the user would go to if they selected Back in the Go menu. Syntax: history.previous Navi