复制代码代码如下:
<Lebar Tabel = 100% Cellpadding = 0 CellSpacing = 0 Border = 0>
<bahasa skrip = "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>"
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>
thisUrl = document.url; <br>
thishref = document.location.href; <br>
thissloc = self.location.href; <br>
<bahasa skrip = "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> iniploc: </td> <td> [" + iniPloc + "] </td> </tr>"
strwrite + = "<tr> <td valign = top> thisthost: </td> <td> [" + thisthost + "] </td> </tr>"
strwrite + = "<tr> <td valign = top> thishost: </td> <td> [" + thineShost + "] </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>
<bahasa skrip = "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>"
strwrite + = "<tr> <td valign = top> thisUpage: </td> <td> [" + thisUpage + "] </td> </tr>"
document.write (strwrite);
</script> <tr> <td>