ÇöÀç ¹®¼­ÀÇ ÁÖ¼Ò(URL) Á¤º¸¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
document : (¹®¼­ °³Ã¼)

ÇöÀç ¹®¼­³ª ÁöÁ¤ÇÑ ¹®¼­ÀÇ °³Ã¼ÀÌ´Ù.

: (¼Ó¼º ¹®ÀÚ¿­)
¼Ó¼º°ªÀº ÇöÀç ¹®¼­ÀÇ ¿ÏÀüÇÑ ÁÖ¼Ò(URL) Á¤º¸¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

URL ¼Ó¼ºÀº ¾ðÁ¦³ª ¼³Á¤ÀÌ °¡´ÉÇÏ°í, ¼³Á¤µÇ¸é ¹Ù·Î ÇØ´ç ÆäÀÌÁö ÁÖ¼Ò·Î À̵¿ÇÑ´Ù.

ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

±¸¹®
document.write(document.URL)
document.URL='Val'
Ư±â

URL(Uniform Resource Locator) ¼Ó¼ºÀº ´ë¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏ¿©¾ß ÇÑ´Ù.

ÀÌ ¼Ó¼ºÀº À©µµ¿ìÀÇ location.href ¼Ó¼ºÀÇ º°¸íÀÌ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE

ÀÌ ¼Ó¼ºÀº (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼­ Á¤ÀǵǾú´Ù.


trio °Ô½ÃÆÇ
»öÀÎÇ¥·Î °¡±â Ŭ¸¯
<A href="http://trio.co.kr/cgi/bbs/triobbs.cgi?db=triobbs">trio °Ô½ÃÆÇ</A><BR>
<SCRIPT>
for (i=0;i<document.links.length;i++){
  if(document.links[i].URL)
    document.write(document.links[i].href+'<BR><FONT color=green>'+document.links[i].URL+'</FONT><BR>');
}

document.write('document.URL=<FONT color=blue>'+document.URL+'</FONT><BR>');
document.write('top.document.URL=<FONT color=blue>'+top.document.URL+'</FONT>');
</SCRIPT>

<DIV onClick="document.URL='http://trio.co.kr/webrefer/tutmain.html'"
  style="border:solid 1 blue;padding:5;background:eef;width:150;margin-left:100">»öÀÎÇ¥·Î °¡±â Ŭ¸¯</DIV>