document.referrer; //获取打开本页的上级页面的的网址。 window.location.href; //获取当前页的网址 host = window.location.host; //获取“当前”域名