JS获取几种URL地址的方法小结
以下为JS获取几种URL地址的方法 代码如下:thisURL = document.URL;thisHREF = [removed].href;thisSLoc = self.location.href;thisDLoc = [removed]; thisTLoc = top.location.href;thisPLoc = parent.[removed];thisTHost = top.location.hostname;thisHost = location.hostname; tmpHPage = thisHREF.split( “/”