How can I determine the complete URL for the previous page? I also need to find a way to determine if the user arrives from a page using http or https.
and especially the "previous" property :
(this is copied/pasted from the url above, devedge's doc)
Description
The previous property reflects the URL that would be used if the user chose Back from the Go menu.
Examples
The following example determines whether history.previous contains the string "NETSCAPE.COM". If it does,
the function myFunction is called.
if (history.previous.indexOf("NETSCAPE.COM" != -1) {
myFunction(history.previous)
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.