jackyrong

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
在一个form里,有时必须禁止用户连续两次提交表单,可以在提交钮上做文章,使用javascript,比如

<script>
function DisableButton(b)
{
b.disabled = true;
b.value = '正在提交,请稍侯';
}
</script>
<p>
<input type="submit" name="SubmitButton" id="SubmitButton"
value="Submit"
onclick="DisableButton(this);" />
</p>
posted on 2006-10-07 20:57  jackyrong的世界  阅读(1133)  评论(1编辑  收藏  举报