复制代码代码如下:
<table largeur = 100% cellpadding = 0 CellSpacing = 0 border = 0>
<script linguisse = "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> thisthref: </td> <td> [" + thathref + "] </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);
</cript>
thisDloc = document.location; <br>
thisUrl = document.url; <br>
thisHref = document.location.href; <br>
thisSloc = self.location.href; <br>
<script linguisse = "javascript">
thattloc = top.location.href;
thisPloc = parent.Document.location;
thisThost = top.location.hostname;
thatHost = location.hostname;
strwrite = "<tr> <td valign = top> thattloc: </td> <td> [" + thattloc + "] </td> </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> [" + thathost + "] </td> </tr>"
Document.Write (Strwrite);
</cript>
thattloc = top.location.href; <br>
thisPloc = parent.Document.location; <br>
thisThost = top.location.hostname; <br>
thatHost = location.hostname; <br>
<script linguisse = "javascript">
tmphPage = thatHref.split ("/");
thatHPage = tmphPage [tmphpage.length-1];
tmpupage = thisUrl.split ("/");
thisupage = tmpupage [tmpupage.length-1];
strwrite = "<tr> <td valign = top> thathpage: </td> <td> [" + thathpage + "] </td> </tr>"
strwrite + = "<tr> <td valign = top> thisupage: </td> <td> [" + thisupage + "] </td> </tr>"
Document.Write (Strwrite);
</cript> <tr> <td>