À©µµ¿ì°¡ ´ÝÇôÀִ°¡¸¦ ºÎ¿ï(Boolean)°ªÀ¸·Î ¹ÝȯÇÑ´Ù.

Àμö
window : (À©µµ¿ì)

ÇʼöÀûÀÎ ÀμöÀ̸ç window °³Ã¼ÀÌ´Ù.

: (¼Ó¼º ºÎ¿ï°ª)
¼Ó¼º°ªÀº À©µµ¿ì°¡ ´ÝÇôÀִ°¡¸¦ ³ªÅ¸³»´Â ºÎ¿ï°ªÀÌ´Ù.

closed ¼Ó¼ºÀº À©µµ¿ì âÀÌ ´ÝÇûÀ¸¸é 'true'¸¦ ¿­·Á ÀÖÀ¸¸é 'false'¸¦ ¹ÝȯÇÑ´Ù.

false µðÆúÆ®À̸ç, µÛµµ¿ì°¡ ¿­·ÁÀÖ´Ù.
true À©µµ¿ì°¡ ´ÝÇôÀÖ´Ù.

ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀ¸·Î µðÆúÆ®°ªÀº falseÀÌ´Ù.

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


°£´ÜÇÑ closed ¼Ó¼º ¿¹Á¦

<FORM>
<INPUT type="button" name="winOpen" value="â ¿­±â" onClick=openWin()>
<INPUT type="button" name="winClose" value="⠴ݱâ" onClick=closeWin()>
</FORM></DIV>
<DIV id="showarea" class=show style=width:200 title="°á°ú"></DIV>

<SCRIPT>
openWin();
function openWin(){
  newWin=window.open('','_new','toolbar=no,scrollbars=no,left=500,top=200,width=200,height=50,status');
  newWin.document.write('<CENTER>»õâ(newWin)ÀÌ ¿­·È´Ù.<FORM>');
  newWin.document.write('<INPUT type=button value="â´Ý±â" onClick="self.close()"></FORM>');
  checkit();
}
function closeWin(){
  if(!newWin.closed) newWin.close();
  checkit();
}
function checkit(){
  showarea.innerHTML='newWin.closed=<FONT color=blue><B>'+newWin.closed+'</B></FONT>';
}
</SCRIPT>