复制代码代码如下:
<tabela largura = 100% CellPadding = 0 CellSpacacing = 0 borda = 0>
<Script Language = "JavaScript">
theurl = document.url;
thishref = document.location.href;
thissloc = self.Location.href;
thisdloc = document.Location;
strwrite = "<tr> <td valign = top> theurl: </td> <td> [" + theurl + "] </td> </tr>"
strwrite + = "<tr> <td valign = top> thisHref: </td> <td> [" + thishref + "] </td> </tr>"
strwrite + = "<tr> <td valign = top> thissloc: </td> <td> [" + thissloc + "] </td> </tr>"
strwrite + = "<tr> <td valign = top> thisdloc: </td> <td> [" + thisDloc + "] </td> </tr>"
document.write (strwrite);
</script>
thisdloc = document.Location; <br>
theurl = document.url; <br>
thishref = document.location.href; <br>
thissloc = self.location.href; <br>
<Script Language = "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>"
strwrite + = "<tr> <td valign = top> thisploc: </td> <td> [" + thisploc + "] </td> </tr>"
strwrite + = "<tr> <td valign = top> this Thost: </td> <td> [" + thisthost + "] </td> </tr>"
strwrite + = "<tr> <td valign = top> thisHost: </td> <td> [" + thisHost + "] </td> </tr>"
document.write (strwrite);
</script>
thistloc = top.location.href; <br>
thisploc = parent.document.location; <br>
thisthost = top.Location.HostName; <br>
thisHost = location.hostname; <br>
<Script Language = "JavaScript">
tmphpage = thishref.split ("/");
thishpage = tmphpage [tmphpage.length-1];
tmpupage = theurl.split ("/");
thisupage = tmpupage [tmpupage.length-1];
strwrite = "<tr> <td valign = top> thishpage: </td> <td> [" + thishpage + "] </td> </tr>"
strwrite + = "<tr> <td valign = top> thisupage: </td> <td> [" + thisupage + "] </td> </tr>"
document.write (strwrite);
</script> <tr> <td>