¹®¼ À§Ä¡ÀÇ ¿ÏÀüÇÑ ÁÖ¼Ò(URL)¸¦ ¹®ÀÚ¿·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
<SCRIPT> document.write('location.href=<FONT color=blue>'+location.href+'</FONT><BR>'); document.write('self.location.href=<FONT color=blue>'+self.location.href+'</FONT><BR>'); document.write('parent.location.href=<FONT color=blue>'+parent.location.href+'</FONT><BR>'); document.write('top.location.href=<FONT color=blue>'+top.location.href+'</FONT><BR>'); </SCRIPT>