title: Detect if page was redirected or loaded directly(Javascript)
body: <p>Currently, I want to display a label on the first page of my site a user visits. </p>
  
  <p>To make it simple, say I only care about page1.html and page2.html.</p>
  
  <p>Is it possible to check if the user was redirected from page1.html to page2.html?(Perhaps with cookies?)</p>
  
  <p>Edit:
  On page1.html, I set a cookie, which would expire in a minute. On page2.html, I checked for the cookie. Works great!</p>