posted 18 years ago
You need to do two things
1. On the submit form, you need to call a function as
<FORM name="xyz" onsubmit="return yourfnname()">
You have to write the code in onsubmit of the form and not onclick of the button which you are pressing.
2. In yourfnname(), you have to add the following code :
function yourfnname(){
if(confirm("Do you want to Submit the data")== true){
// If some processing needs to be done, do it here
return true;
}
return false;
}