var rUrl;
rUrl = document.referrer; //获得当前页的来路地址URL
rUrl = window.parent.location; //获得父窗口的地址URL
rUrl = window.parent.document.referrer; //获得父窗口的来路地址URL
rUrl = window.top.location; //获得顶级窗口的地址URL
rUrl = window.top.document.referrer; //获得顶级窗口的来路地址URL
另外: 获得本页或本窗口的地址URL的方法是window.location