µ¥ÀÌÅÍ Ã³¸®¸¦ À§ÇÏ¿© form ³»¿ëÀÌ º¸³»Áö´Â ¼­¹öÀÇ ÁÖ¼Ò(URL)¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º ¹®ÀÚ¿­)

¼Ó¼º °ªÀº form µ¥ÀÌÅÍ Ã³¸®¸¦ Çϱâ À§ÇØ º¸³»Áö´Â ¼­¹öÀÇ ÁÖ¼Ò¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.
»ó´ëÁÖ¼Ò°¡ ÁöÁ¤µÇ¸é ÇöÀçÀÇ ¹®¼­¿¡ »ó´ëÀûÀÎ À§Ä¡·Î ã¾Æ°£´Ù.

ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

Ư±â

½ÇÁ¦ÀûÀ¸·Î µ¥ÀÌÅÍ°¡ ¼Û½ÅµÇ´Â ¹æ½ÄÀº method¿Í encoding ¼Ó¼º°ªµé¿¡ ÀÇÇÏ¿© °áÁ¤µÈ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
Âü°í

ÀÌ ¼Ó¼ºÀº (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼­ Á¤ÀǵǾú´Ù.


¼º¸í:
ÁÁ¾ÆÇÏ´Â ²É:

<FORM id="formObj" name="fName" action="http://koxo.com/lang/js/object/exp/xsubmit.cgi" method="post">
¼º¸í: <INPUT name="inName" value="È«±æµ¿"><BR>
ÁÁ¾ÆÇÏ´Â ²É:
<SELECT name="flower">
<OPTION value="rose">Àå¹Ì
<OPTION value="hibisicus" selected>¹«±ÃÈ­
<OPTION value="jindalae">Áø´Þ·¡
</SELECT>
<P><INPUT type=submit>
</FORM>
<SCRIPT>
document.write('formObj.method='+formObj.method+'<BR>');
document.write('formObj.action='+formObj.action);
</SCRIPT>

À̸ÞÀÏ ÁÖ¼Ò :
Á¦¸ñ :
º»¹® :
°á°ú Ç¥½Ãâ

½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÑ action¿¡¼­ protocol mailtoÀ» »ç¿ëÇÏ¿© ¸ÞÀÏÀ» ¼Û½ÅÇÑ´Ù.

<SCRIPT>
function dosubmit(){
  fname.action='mailto:'+fname.email.value;
  str='fname.action="'+fname.action+'"<BR>';
  showA.innerHTML=str;
}
</SCRIPT>
<FORM name="fname" method="get" onsubmit="dosubmit()">
À̸ÞÀÏ ÁÖ¼Ò : <INPUT name="email" value="trio@trio.co.kr"><BR>
Á¦¸ñ : <INPUT name="subject" value="¸ÞÀÏ Á¦¸ñ"><BR>
º»¹® : <TEXTAREA name="body" cols=40>º»¹® ³Ö±â</TEXTAREA><BR>
<INPUT type="submit" value="¸ÞÀÏ ¹ß¼Û">
</FORM>
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV>