Ŭ¸¯À¸·Î ¹®¼ÀÇ ¿¬°á(links) ¹è¿º¯¼ö º¸±â
<head>
<SCRIPT Language="Javascript">
<!-- °¨Ãã
function showLinks(){
str='<h2>'+document.referrer+' links ¸ñ·Ï</h2>';
str+='<TABLE border=1 bgcolor="eeeeee"><TR><TD rowspan="2">[#]</TD><TD>';
str+='.protocol</TD><TD>.hostame</TD><TD>.domain</TD>'';
str+='<TD>.hash</TD><TD>.target</TD><TD>.pathname</TD><TD>.host</TD><TD>.port</TD></TR>';
str+='<TR bgcolor="eeeeee"><TD colspan=10>document.links[i].href</TD></TR>';
width=screen.availWidth-20;
newWin=window.open('','','top=0,left=0,width='+width+',resizable=yes,scrollbars=yes');
var len=document.links.length;
str+='document.links.length='+len+'<BR>';
for (i=0;i<len;i++){
str+='<TR><TD>['+i+']</TD>';
str+='<TD>'+document.links[i].protocol+'</TD>';
str+='<TD>'+document.links[i].hostname+'</TD>';
str+='<TD>'+document.links[i].domain+'</TD>';
str+='<TD>'+document.links[i].hash+'</TD>';
str+='<TD>'+document.links[i].target+'</TD>';
str+='<TD>'+document.links[i].pathname+'</TD>';
str+='<TD>'+document.links[i].host+'</TD>';
str+='<TD>'+document.links[i].port+'</TD>';
str+='</TR>';
str+='<TR><TD colspan=9>'+document.links[i].href+'</TD></TR>';
}
str+='</TABLE><center><a href="javascript:self.close()">â´Ý±â</a></center>';
newWin.document.write(str);
}
// °¨Ãã ³¡ -->
</SCRIPT>
</head>
<body>
<DIV class=show style="width:350;text-align:center" title="Ŭ¸¯"
onClick="showLinks()">Ŭ¸¯À¸·Î ¹®¼ÀÇ ¿¬°á(<span class=object>links</span>) ¹è¿º¯¼ö º¸±â</DIV>
</body>