formÀÇ ¿©·¯°¡Áö ÀÔ·Â Á¦¾îµéÀ» »ý¼ºÇÑ´Ù.
Script | [propVal=]..propName; | |
HTML | propName="propVal">innerString |
form °³Ã¼ÀÇ INPUT ¿¤·¹¸àÆ®¿¡ »ç¿ëµÇ´Â type ¾ÖÆ®¸®ºäÆ®´Â ´ÙÀ½°ú °°´Ù.
button | checkbox | file | hidden | image |
password | radio | reset | submit | text |
ÀÌ ¿¤·¹¸àÆ®´Â ÀζóÀÎ ¿¤·¹¸àÆ®ÀÌ´Ù.
ÀÌ ¿¤·¹¸àÆ®´Â Á¾·áű׸¦ ÇÊ¿ä·Î ÇÏÁö ¾Ê´Â´Ù.
ÀÌ °³Ã¼´Â (¿µ¹®)HTML3.2¿¡ Á¤ÀǵǾú°í (¿µ¹®)DOM Level 1(W3C Document Object Model)¿¡ Á¤ÀǵǾú´Ù.
¼³¸íÀ» À§ÇÑ ¿¹Á¦
style | script |
---|---|
{layout-flow:val} | obj.style.layoutFlow[=val] |
¢¡ °³Ã¼ ³»¿ëÀÇ ¹æÇâÀ̳ª È帧¹æÇâÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{text-underline-position:val} | obj.style.textUnderlinePosition[=val] |
¢¡ °³Ã¼ÀÇ textDecoration ¼Ó¼ºÀÌ 'underline'·Î ¼³Á¤µÈ °æ¿ì ¹ØÁÙÀÇ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{word-wrap:val} | obj.style.wordWrap[=val] |
¢¡ ³»¿ëÀÌ ¿ë±â °³Ã¼ÀÇ ¹üÀ§¸¦ ÃÊ°úÇÏ¸é ´Ü¾î¸¦ ÀÚ¸¦ °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{writing-mode:val} | obj.style.writingMode[=val] |
¢¡ °³Ã¼¼Ó ³»¿ëÀÇ ¹æÇâÀ̳ª È帧À» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{zoom:val} | obj.style.zoom[=val] |
¢¡ °³Ã¼ÀÇ È®´ë ¹èÀ²À» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. |
Behavior | ¼³¸í |
---|---|
mask | DHTML °³Ã¼µé¿¡ ¸¶½ºÅ© ºñÇìÀ̹ö¸¦ Çã¿ëÇÑ´Ù. |
°³Ã¼ ¿¹Á¦
<SCRIPT> function showValues(){ obj=document.forms(1); str=''; for (i=0;i< obj.elements.length;i++){ str+=obj[i].nodeName+' type="'+obj[i].type+'" name="'+obj[i].name+'" value="'+obj[i].value+'"<BR>'; } showA.innerHTML=str; } </SCRIPT> <FORM id="formName" action="http://koxo.com/lang/js/object/exp/xsubmit.cgi" method=get> <P>¼º¸í <INPUT name="inObj" type=text value="È«±æµ¿"> <P>¾ÏÈ£ <INPUT name="passObj" type="password" value="¾ÏÈ£"> <P>»ö»ó <INPUT type="radio" name="butObj" value="red" checked>Àû»ö <INPUT type="radio" name="butObj" value="green">³ì»ö <INPUT type="radio" name="butObj" value="blue">û»ö <P>Ư±â <INPUT name="in2Obj" type="text" size="30" maxlength="250" value="Ư±â ÀÔ·Â"> <P><INPUT name="checkObj" type=checkbox checked>ȸ½Å ¿äû</P> <P style="margin-left:3em"><INPUT name="showBut" type=button value="³»¿ëº¸±â" onclick="javascript:showValues()"> <INPUT name="submitBut" type="submit" value="¼Û½Å"> <INPUT name="resetBut" type="reset" value="´Ù½Ã"></P> </FORM> <DIV id=showA>°á°ú Ç¥½Ãâ</DIV>