I tried to delay for 10 sec before submit form like this but not work. It's will be still return true by not to delay.

```
<form class="form" method="post" action="" ENCTYPE = "multipart/form-data" onsubmit="return checkform(this);" >
    <input type="submit" name="submit" value="OK">
</form>

<script language="JavaScript" type="text/javascript">
    function checkform ( form )
    {
        var test = "1";
        setTimeout(function(){
            if(test != '0'){
                return false;
            }
            else
            {
                return true;
            }
        }, 10000);
    }
</script>

```

I want to know, how to delay on checkform using javascript ?