°³Ã¼°¡ ¼Ò¼ÓµÈ form °³Ã¼À» ¹ÝȯÇÑ´Ù.
ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
form °³Ã¼°¡ ¾øÀ¸¸é nullÀ» ¹ÝȯÇÑ´Ù.
À̼ӼºÀº IE6ºÎÅÍ fieldSet isIndex, label¿Í legend ¿¤·¹¸àÆ® °³Ã¼¿¡µµ Àû¿ëµÈ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
<FORM name="formObj"> ÀÔ·ÂÇʵå <INPUT type="text" name="inObj" value="ÀÔ·ÂÇʵå ÃʱⰪ"> </FORM> <SCRIPT> document.write('formObj.inObj.form.name='+formObj.inObj.form.name+'<BR>'); document.write('formObj.inObj.form.elements.length='+formObj.inObj.form.elements.length+'<BR>'); document.write('formObj.inObj.form.elements[0].name='+formObj.inObj.form.elements[0].name+'<BR>'); document.write('formObj.inObj.form.elements[0].type='+formObj.inObj.form.elements[0].type+'<BR>'); document.write('formObj.inObj.form.elements[0].value='+formObj.inObj.form.elements[0].value+'<BR>'); </SCRIPT>