Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return to form after "ok" on alert box 1

Status
Not open for further replies.

Peanut13

Programmer
Feb 1, 2001
3
US
I have a form where I want users to check a box to confirm that they understand the terms of the the upload area. If they fail to check the box they will be alerted upon clicking the upload button. Problem: the alert box comes up correctly however, if you click okay on the alert box the upload continues. I want the user to be returned to the form to check the box. Can anyone tell me what I need to do to correct this problem?


function validate(form) {
if (document.UploadForm.controlled.checked)
{
return true;
}
else{
(alert("You must check the box to continue"));
return false;
}
}



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top