复制代码代码如下:
<table width = 100%cellpadding = 0 cellspacing = 0 border = 0>
<脚本语言=“ javascript”>
thisurl = document.url;
thishref = document.location.href;
thissloc = self.location.href;
thisdloc = document.location;
strwrite =“ <tr> <td valign = top> thisurl:</td> <td> [ + thisUrl +“] </td> </tr>”
strwrite + =“ <tr> <td valign = top> thishref:</td> <td> [“ + thishref +”] </td> </tr> </tr>”
strwrite + =“ <tr> <td valign = top> thissloc:</td> <td> [“ + thissloc +”] </td> </tr> </tr>”
strwrite + =“ <tr> <td valign = top> thisdloc:</td> <td> [“ + thisdloc +”] </td> </tr> </tr>”
document.Write(Strwrite);
</script>
thisdloc = document.location; <br>
thisurl = document.url; <br>
thishref = document.location.href; <br>
thissloc = self.location.href; <br>
<脚本语言=“ javascript”>
thistloc = top.location.href;
thisploc = parent.document.location;
thisthost = top.location.hostname;
thishost = location.hostname;
strwrite =“ <tr> <td valign = top> thistloc:</td> <td> [“ + thistloc +”] </td> </tr> </tr>”
strwrite + =“ <tr> <td valign = top> thisploc:</td> <td> [ + thisploc +“] </td> </tr>”
strwrite + =“ <tr> <td valign = top> thisthost:</td> <td> [ + thisthost +“] </td> </tr>”
strwrite + =“ <tr> <td valign = top> thishost:</td> <td> [“ + thishost +”] </td> </tr> </tr>”
document.Write(Strwrite);
</script>
thistloc = top.location.href; <br>
thisploc = parent.document.location; <br>
thisthost = top.location.hostname; <br>
thishost = location.hostname; <br>
<脚本语言=“ javascript”>
tmphpage = thishref.split(“/”);
thisHpage = tmphpage [tmphpage.length-1];
tmpupage = thisurl.split(“/”);
thisUpage = tmpupage [tmpupage.length-1];
strwrite =“ <tr> <td valign = top> thishpage:</td> <td> [ + thisHpage +“] </td> </tr> </tr>”
strwrite + =“ <tr> <td valign = top> thisupage:</td> <td> [ + thisupage +“] </td> </tr>”
document.Write(Strwrite);
</script> <tr> <td>