这是我的表格的一部分:
<form name='form-main' onsubmit='return validate()' action='' method='post'>
    <center><input type='submit' onClick='this.disabled=true; this.form.submit();' value='I accept - Download the GM!'/></center>
</form>
这是validate功能:
function validate()
{
    // this is just to test if it actually shows
    alert('You must not leave any of the fields blank!');
    return false;
}
每当我点击提交按钮时,什么也没有发生,页面只是重新加载..我希望它显示警报对话框。