var uu = document.referrer;
alert(uu);