출처 블로그 > 호이야~ 공부하자.
원본 http://blog.naver.com/ahnwhan76/100011474330

<HTML>
<HEAD>
<script>
 function submitonce(theform){
  if (document.all||document.getElementById){
   for (i=0;i<theform.length;i++){
    var tempobj=theform.elements[i]
     if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
      tempobj.disabled=true
   }
   setTimeout('alert("전송되었습니다")',2000)
  }
  else
   alert("전송되었습니다")
  return false
 }
</script>
</HEAD>

<BODY>
<form method="POST" name="test" onSubmit="return submitonce(this)">
<table border="0" cellspacing="5" cellpadding="0">
 <tr>
  <td><strong><font face="Verdana">이름:</font></strong></td>
  <td><input type="text" name="T1" size="20"></td>
 </tr>
 <tr>
  <td valign="top" align="left"><strong><font face="Verdana">내용: </font></strong></td>
  <td><textarea rows="6" name="S1" cols="30"></textarea></td>
 </tr>
 <tr>
  <td><div align="center"></div></td>
  <td align="center"><div align="left"><p><input type="submit" value="확인" name="B1"> <input type="reset" value="다시" name="B2"></td>
 </tr>
</table>
</form>
</BODY>
</HTML>