phpschool 거친마루님의 덧글 참고.

<form action=\"http://phpschool.com\" onSubmit=\"this.submit.disabled=true\">
<input type=\"text\" name=\"test\">
<input name=\"submit\" type=\"submit\" value=\"전송\">
</form>
이렇게 해야겠네요 : )
Jun// type=image일때는 조금 다르게 동작하는거같습니다
그래도 disabled 속성은 있으니
<input type=\"image\" onClick=\"this.form.submit();this.disabled=true\" value=\"전송\">

====================================================================
IE6에선 확인할수 없지만.

일단 IE7에선 아래 처럼 적용.
<input type="submit" value=" 저장 " onClick="this.form.submit();this.disabled=true"/>

<html>
 <head>
  <title> new document </title>
 </head>
 <body>
<form name="Form" method="post" action="<?=$PHP_SELF?>?style=bbs" id="Form">
<script type="text/javascript">
<!--
var theForm = document.forms['Form'];
if (!theForm) {
    theForm = document.Form;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.submit();
    }
}
// -->
</script>
 <input id="ViewModeRBL_0" type="radio" name="ViewModeRBL" value="T" checked="checked" /><label for="ViewModeRBL_0">1번 페이지</label><input id="ViewModeRBL_1" type="radio" name="ViewModeRBL" value="N" onclick="javascript:setTimeout('__doPostBack(\'ViewModeRBL$1\',\'\')', 0)" /><label for="ViewModeRBL_1">2번 페이지</label>
</form>
 </body>
</html>


므지 필요한거 였는데...
레이소다에 갔다가 발견 ....
낼름 업어 왔다...;;;;

+ Recent posts