한번만 submit 되게 하기 입니다.

· 10년 전 · 629

<HTML>
<HEAD>
<META http-equiv="content-type" content="text/html; charset=euc-kr">

<SCRIPT LANGUAGE="JavaScript">
<!--
var submitcount=0;

function reset() {
document.emailform.name.value="";
document.emailform.email.value="";
document.emailform.comments.value="";
}

function checkFields() {
if ( (document.emailform.name.value=="")  ||
    (document.emailform.email.value=="") ||
    (document.emailform.comments.value=="") )
  {
  alert("항목을 채워주세요");
  return false;
  }

else
  {
  if (submitcount == 0)
      {
      submitcount++;
      return true;
      }
  else
      {
      alert("버튼은 한번만 눌러주세요");
      return false;
      }
  }
}
//-->
</script>


</HEAD>

<BODY onLoad="reset()">


<form method=post action="#" name="emailform" onSubmit="return checkFields()">

<input type=hidden name=to value="이메일@주소">
<input type=hidden name=subject value="메일제목">

<pre>
이  름 :  <input type=text name="name">
이메일 :  <input type=text name="email">

하실말씀

<textarea name="comments" wrap="virtual" rows="7" cols="45"></Textarea>
<input type=submit>
</pre>
</form>

</BODY>
</HTML>

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
10년 전 조회 612
10년 전 조회 589
10년 전 조회 671
10년 전 조회 674
10년 전 조회 631
10년 전 조회 575
10년 전 조회 663
10년 전 조회 652
10년 전 조회 643
10년 전 조회 706
10년 전 조회 702
10년 전 조회 599
10년 전 조회 646
10년 전 조회 714
10년 전 조회 643
10년 전 조회 741
10년 전 조회 670
10년 전 조회 619
10년 전 조회 596
10년 전 조회 629
10년 전 조회 596
10년 전 조회 615
10년 전 조회 645
10년 전 조회 593
10년 전 조회 633
10년 전 조회 600
10년 전 조회 692
10년 전 조회 801
10년 전 조회 748
10년 전 조회 728
10년 전 조회 626
10년 전 조회 736
10년 전 조회 636
10년 전 조회 672
10년 전 조회 632
10년 전 조회 611
10년 전 조회 594
10년 전 조회 630
10년 전 조회 706
10년 전 조회 656
10년 전 조회 751
10년 전 조회 643
10년 전 조회 662
10년 전 조회 651
10년 전 조회 703
10년 전 조회 789
10년 전 조회 885
10년 전 조회 639
10년 전 조회 736
10년 전 조회 630
10년 전 조회 595
10년 전 조회 594
10년 전 조회 760
10년 전 조회 657
10년 전 조회 640
10년 전 조회 642
10년 전 조회 801
10년 전 조회 792
10년 전 조회 1,291
10년 전 조회 680
10년 전 조회 757
10년 전 조회 669
10년 전 조회 1,008
10년 전 조회 718
10년 전 조회 728
10년 전 조회 666
10년 전 조회 647
10년 전 조회 896
10년 전 조회 814
10년 전 조회 628
10년 전 조회 718
10년 전 조회 845
10년 전 조회 549
10년 전 조회 634
10년 전 조회 618
10년 전 조회 1,065
10년 전 조회 736
10년 전 조회 775
10년 전 조회 737
10년 전 조회 724
10년 전 조회 970
10년 전 조회 867
10년 전 조회 814
10년 전 조회 767
10년 전 조회 782
10년 전 조회 776
10년 전 조회 714
10년 전 조회 1,193
10년 전 조회 708
10년 전 조회 709
10년 전 조회 928
10년 전 조회 721
10년 전 조회 775
10년 전 조회 628
10년 전 조회 890
10년 전 조회 708
10년 전 조회 608
10년 전 조회 671
10년 전 조회 1,349
10년 전 조회 725