Âü°í dialogArguments dialogHeight dialogLeft dialogTop dialogWidth

dialogArguments, dialogTop, dialogLeft, dialogHeight, dialogWidth ¼Ó¼º ¿¹Á¦

ÇÊµå ¸í:
ÇÊµå °ª:

´ëȭâ¿¡¼­ º¸³»Áø º¯¼ö¸¦ ¹Þ´Âµ¥ dialogArguments ¼Ó¼ºÀÌ »ç¿ëµÈ´Ù.

<SCRIPT>
function openModal(){
  elemArr=formObj.elements;
  newObj=new Object();
  newObj.fldName=elemArr.iFldName.value;
  newObj.fldVal=elemArr.iFldVal.value;
  showModalDialog('../../property/exp/wModalDialogExp.html',newObj,
    'dialogLeft:100;dialogTop:10;dialogHeight:20;dialogWidth:30;');
}
</SCRIPT>
<FORM id= "formObj">
ÇÊµå ¸í: <INPUT type="text" name="iFldName" value="apple"><BR>
ÇÊµå °ª: <INPUT type="text" name="iFldVal" value="»ç°ú">
<BUTTON onclick="openModal()">´ëȭâ ¿­±â</BUTTON>
</FORM>

../../property/exp/wModalDialogExp.html ¹®¼­ÀÇ ³»¿ë
<BODY bgcolor=#ffffcc>
<CENTER>
<BR>
<H4>modalDialog ´ëȭâ ¿¹Á¦</H4>
wModalDialogExp.html ³»¿ë<BR>

<BR>
<SCRIPT>
str='dialogArguments.fldName='+dialogArguments.fldName+'<BR>';
str+='dialogArguments.fldVal='+dialogArguments.fldVal+'<BR>';
str+='dialogTop='+dialogTop+'<BR>';
str+='dialogLeft='+dialogLeft+'<BR>';
str+='dialogHeight='+dialogHeight+'<BR>';
str+='dialogWidth='+dialogWidth+'<BR>';
document.write(str);
</SCRIPT>
<BR>

<BUTTON onclick=self.close()>´ëȭ⠴ݱâ</BUTTON>
</CENTER>

</BODY>
</HTML>

dialogArguments, dialogTop, dialogLeft, dialogHeight, dialogWidth ¼Ó¼º ¿¹Á¦

¼±Åà :
<SCRIPT>
function optionDialog(){
  event.srcElement.blur();
  oObj=new Object();
  oObj.selText=selObj.options(selObj.selectedIndex).text;
  window.showModalDialog('../../property/exp/wModalDialogExp1.html',oObj,'dialogWidth:600px;dialogHeight:300px')
}
</SCRIPT>
¼±Åà : <SELECT id=selObj onchange="optionDialog()">
<OPTION>Ç׸ñ 1</OPTION>
<OPTION>Ç׸ñ 2</OPTION>
<OPTION>Ç׸ñ 3</OPTION>
<OPTION>Ç׸ñ 4</OPTION>
<OPTION>Ç׸ñ 5</OPTION>
</SELECT>

../../property/exp/wModalDialogExp1.html ¹®¼­ÀÇ ³»¿ë
<HTML>
<HEAD>
<TITLE>ModalDialog ´ëȭâ ¿¹Á¦</TITLE>
</HEAD>

<BODY bgcolor=#ccffff>
<CENTER>
<BR>
<H4>modalDialog ´ëȭâ ¿¹Á¦</H4>
wModalDialogExp1.html ³»¿ë<BR>

<BR>
<SCRIPT>
str='<FONT color=red><B>'+dialogArguments.selText+'</B></FONT> ¼±ÅõǾú´Ù.</BR>';
str+='dialogArguments.selText='+dialogArguments.selText+'<BR>';
str+='dialogTop='+dialogTop+'<BR>';
str+='dialogLeft='+dialogLeft+'<BR>';
str+='dialogHeight='+dialogHeight+'<BR>';
str+='dialogWidth='+dialogWidth+'<BR>';
document.write(str);
</SCRIPT>
<BR>

<BUTTON onclick=self.close()>´ëȭ⠴ݱâ</BUTTON>
</CENTER>

</BODY>
</HTML>