get previous url in back click javascript code example Example: get previous url javascript document.referrer