;;;this code is image submit button, isnt it
Yes, one way of doing it.
;;;may i know the function code
Sure.
BTW: 'submitForm' was a random name, this can be called anything.
Thre are two things you could do:
1.. onClick="Javascript
:formName.submit();"
Would submit the form to the destination indicated in the action property of the <form> tag (no actual function needed as submit() is a function).
2.. This is the option I use for several reasons. You may want to validate or based on certain values etc direct the user to a different location(s) to the page indicated in the <form> tag, pass certain queryStrings based on some
JS prompts/answers etc...
Anyhow:
onClick="someJSFunctionName();"
Now in the head of your document:
<script>
function someJSFunctionName(someVar)
{
//do validation, change action location or what ever here then:
formName.submit();
}
</script>
Wind is your friend
Matt