matheusmurta
9/26/2019 - 1:06 PM

Javascript Get previous Page

Javascript Get previous Page

Javascript Get previous Page example of use 

//the web api 
document.referrer

/login 
      to -> main page

//use in main page to check 
document.referrer.includes('i/login');

//result 
true