<form action=about:ok>
<input type="button" onclick=if(check())submit() value=button>
</form>
<script>
function check(){
return true;
}
</script>