µð½ºÇ÷¹ÀÌµÈ °³Ã¼ÀÇ Á¦¾î°ªÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. ÀÌ ¼Ó¼ºÀº °³Ã¼°¡ ¼Û½ÅµÇ¸é ¼¹ö¿¡ Àü´ÞµÈ´Ù.
°³Ã¼°¡ ¼¹ö¿¡ ¼Û½ÅµÇ¸é name/value ¦ÀÌ ¼¹ö¿¡¼ÀÇ Ã³¸®¸¦ À§ÇÏ¿© ¼¹ö¿¡ Àü´ÞµÈ´Ù.
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
value ¼Ó¼ºÀÇ ÃʱⰪÀº °³Ã¼ÀÇ Ãʱ⠵ð½ºÇ÷¹ÀÌµÈ ¹®ÀÚ¿ÀÌ´Ù. »ç¿ëÀÚ°¡ ÀÌ value ¹®ÀÚ¿À» °³Ã¼ÀÇ ³»¿ë Á¦¾î¸¦ ¼Û½ÅÇϱâ Àü¿¡ ÆíÁýÇÒ ¼ö ÀÖ´Ù. INPUT type=reset Á¦¾î °³Ã¼·Î Àç¼³Á¤ÇÏ¸é ¿ø·¡»óÅ·ΠÃʱⰪÀÌ È¸º¹µÈ´Ù.
INPUT type=password °³Ã¼ÀÇ value ¼Ó¼ºÀº text ¼Ó¼º°ú °°Àº ¹æ½ÄÀÌÁö¸¸ Ç×»ó ¹®ÀÚµéÀÌ *¿Í °°Àº ¹®ÀÚ·Î º¸ÀÌÁö ¾Ê°Ô µð½ºÇ÷¹ÀÌ µÇ´Â Á¡¸¸ ´Ù¸£´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®)HTML 3.2¿¡¼ Á¤ÀǵǾú´Ù.
°ªÀ» º¯°æÇÏ°í ¸¶¿ì½º¸¦ °³Ã¼ ¹Û¿¡¼ Ŭ¸¯ÇØ º¸¶ó.
<SCRIPT> function showResult(){ str='fmName.textObj.nodeName='+fmName.textObj.nodeName+'<BR>'; str+=' fmName.textObj.name='+fmName.textObj.name+'<BR>'; str+=' fmName.textObj.value='+fmName.textObj.value+'<BR><BR>'; str+='fmName.passObj.nodeName='+fmName.passObj.nodeName+'<BR>'; str+=' fmName.passObj.name='+fmName.passObj.name+'<BR>'; str+=' fmName.passObj.value='+fmName.passObj.value+'<BR>'; showA.innerHTML=str; } </SCRIPT> <FORM name="fmName" action="http://koxo.com/lang/js/object/exp/xsubmit.cgi"> ¼º¸í: <INPUT type="text" name="textObj" value="ÅؽºÆ® ÃʱⰪ" size=15 onchange="showResult()"> ¾ÏÈ£: <INPUT type="password" name="passObj" value="¾ÏÈ£ ÃʱⰪ" size=15 onchange="showResult()"> <INPUT type="reset" onclick="form.reset();showResult()"> <INPUT type="submit" onclick="showResult()" value="¼Û½ÅÈ®ÀÎ"> </FORM> <DIV id=showA>°á°ú Ç¥½Ãâ</DIV>