ÇöÀç ±â´ÉÇÔ¼ö¸¦ ºÒ·¯¿Â ±â´ÉÇÔ¼ö¿¡ ´ëÇÑ ÂüÁ¶¸¦ ¹ÝȯÇÑ´Ù.
function °³Ã¼´Â ½ÇÇà ÁßÀÎ ±â´ÉÇÔ¼öÀÇ ÀÓÀÇÀÇ À̸§ÀÌ´Ù.
caller ¼Ó¼ºÀº ±â´ÉÇÔ¼ö°¡ ½ÇÇà ÁßÀÎ °æ¿ì¿¡¸¸ Á¤ÀÇÇÒ ¼ö ÀÖ´Ù.
Javascript ÇÁ·Î±×·¥ÀÇ ¸Ç À§ ¼öÁØ¿¡¼ ±â´ÉÀ» È£ÃâÇϸé caller´Â nullÀ» ¹ÝȯÇÑ´Ù.
caller ¼Ó¼ºÀ» ¹®ÀÚ¿ ÄÁÅؽºÆ®¿¡ »ç¿ëÇϸé functionObj.toString°ú °°Àº °á°ú°¡ ³ª¿Â´Ù.
Áï, ±â´ÉÇÔ¼ö¿¡¼ ¿ªÄÄÆÄÀÏµÈ ÅؽºÆ®°¡ Ç¥½ÃµÈ´Ù.
JScript 1.3 ÀÌÈÄ¿¡´Â Æó±âµÇ°í ÀÖ´Ù.
<DIV id="showarea0" class=show style=width:400 title="°á°ú"></DIV> <DIV class=show style=width:400;text-align:center> <FORM><INPUT type="button" value="Ŭ¸¯ÇÏ¿© °á°ú¸¦ º¸¶ó" onclick="CallTest()"></FORM> </DIV> <SCRIPT> function CallTest(){ showarea0.innerHTML='CallTest.caller='+CallTest.caller; } </SCRIPT>