title: How do you detect if the page is a redirect using Javascript in the client side
body: <p>Is there a way for me to find out if the current page is a 301 or 302 redirect from another URL? How do you get the previous URL of the page?</p>