form °³Ã¼°¡ ¾î¶»°Ô µ¥ÀÌÅ͸¦ ¼¹ö¿¡ º¸³»´Â°¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
get | µðÆúÆ®À̸ç, action ÁÖ¼Ò(URL)¿¡ Àμöµé(arguments)À» ÷ºÎÇÏ°í ¾ØÄ¿°¡ ÀÖÀ¸¸é ¿¬´Ù. |
post | HTTP ¹ß¼Û(post) º¯È¯À» ÅëÇÏ¿© ¼Û½ÅÇÑ´Ù. |
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº getÀÌ´Ù.
post ¸Þ¼µå·Î µ¥ÀÌÅ͸¦ ¼Û½ÅÇÒ ¶§ ÀÌ·ÐÀûÀ¸·Î´Â HTTP ¼¹ö¿¡ º¸³¾ ¼ö ÀÖ´Â µ¥ÀÌÅÍ·®¿¡´Â Á¦ÇÑÀÌ ¾ø´Ù.
µ¥ÀÌÅÍ·®ÀÇ ½ÇÁ¦ÀûÀÎ Á¦ÇÑÀº »ç¿ëÀÚ ÄÄÇ»ÅÍÀÇ ¹°¸®Àû Á¦ÇÑÀÌ µÉ ¼ö ÀÖÀ» °ÍÀÌ´Ù.
get ¸Þ¼µå·Î µ¥ÀÌÅ͸¦ HTTP ¼¹ö¿¡ º¸³¾ ¶§´Â URL ÁÖ¼ÒÀÇ ÃÖ°í ±æÀÌ 2048 bytesÀÇ Á¦ÇÑÀ» ¹Þ´Â´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®) HTML 3.2¿Í (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
<FORM id="formObj"> ÀÔ·Â Çʵå <INPUT> </FORM> <SCRIPT> document.write('formObj.method='+formObj.method); </SCRIPT>