I am calling the function from a button using onclick. Is it possible to have the alert popup with a yes and no button. The yes lets it continue and no returns false.
Basically what is happening is a user fills in the forms that have no required info, but I want to ask the user if they are really ready to sumbit just incase they hit the enter button instead of the tab button.
<SCRIPT language=JavaScript>
function checkCheckBox(){
alert("Do you want to submit")
if(confirm("")) {
contine#####
}
else
return false;
}
</SCRIPT>
Basically what is happening is a user fills in the forms that have no required info, but I want to ask the user if they are really ready to sumbit just incase they hit the enter button instead of the tab button.
<SCRIPT language=JavaScript>
function checkCheckBox(){
alert("Do you want to submit")
if(confirm("")) {
contine#####
}
else
return false;
}
</SCRIPT>
Comment