°³Ã¼°¡ ·ÎµùµÈ ÁÖ¼Ò(URL)¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º ÁÖ¼Ò ¹®ÀÚ¿­)

¼Ó¼º°ªÀº °³Ã¼°¡ ·ÎµùµÈ ¿øõ ¹®¼­ÀÇ ÁÖ¼Ò(URL)¸¦ ³ªÅ¸³»´Â ÁÖ¼Ò ¹®ÀÚ¿­ÀÌ´Ù.

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

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶
ÀÌ ¼Ó¼ºÀº HTML 4.0°ú (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼­ Á¤ÀǵǾú´Ù.




°á°ú Ç¥½ÃÀå

´ÜÃß¿Í ¹®¼­ ¾Æ¹«µ¥¼­³ª Ŭ¸¯ÇØ º¸¶ó.

<SCRIPT>
function changeSrc(){
  str=document.all.iframeObj.src;
  if (document.all.iframeObj.src=='../../gif/flower.jpg') document.all.iframeObj.src='../../gif/flower1.jpg';
  else document.all.iframeObj.src='../../gif/flower.jpg';
  showA.innerHTML=str+' ==> '+document.all.iframeObj.src;
}
</SCRIPT>
<BODY onmousedown="oImage.src='../../gif/rfobject.gif'" onmouseup="oImage.src='../../gif/rfproperty.gif'">
<IMG id=oImage src="../../gif/rfproperty.gif"><BR>
<IFRAME id=iframeObj src="../../gif/flower.jpg" width=400 height=300></IFRAME><BR>
<BUTTON onclick="changeSrc()">À̹ÌÁö ¹Ù²Ù±â</BUTTON>
<DIV id=showA>°á°ú Ç¥½ÃÀå</DIV>