复制代码代码如下所示:


thisurl = document.url;
thishref = document.location.href;
thissloc = self.location.href;
thisdloc = document.location;
strwrite =thisurl:{+ thisurl +}
strwrite =thishref:+ thishref +}
strwrite =thissloc:+ thissloc +}
strwrite =thisdloc:+ thisdloc +}
document.write(strwrite);

thisdloc = document.location;
thisurl = document.url;
thishref = document.location.href;
thissloc = self.location.href;

thistloc = top.location.href;
thisploc = parent.document.location;
thisthost = top.location.hostname;
thishost = location.hostname;
strwrite =thistloc:{+ thistloc +}
strwrite =thisploc:+ thisploc +}
strwrite =thisthost:+ thisthost +}
strwrite =thishost:+ thishost +}
document.write(strwrite);

thistloc = top.location.href;
thisploc = parent.document.location;
thisthost = top.location.hostname;
thishost = location.hostname;

tmphpage = thishref.split( / );
thishpage = tmphpage { tmphpage length-1 };
tmpupage = thisurl.split( / );
thisupage = tmpupage { tmpupage length-1 };
strwrite =thishpage:{+ thishpage +}
strwrite =thisupage:+ thisupage +}
document.write(strwrite);