I cannot get the confirm to work. does anyone know why my confirm stmt will not work? Her is my code:
app.alert("Lets get started");
var answer = confirm ("Are you having fun?");
if (answer)
app.alert ("Woo Hoo! So am I.")
else
app.alert ("Darn. Well, keep trying then.");
if ( confirm("You have now successfully completed your application. Have you saved your completed application to your hard drive?"))
{app.alert ("You must now complete Step 2 by signing and dating the form. Fill in the appropriate information at the bottom and click the Save button. After saving the form to your harddrive, you must then email both completed forms as attachments to uSARR.GOV. You must then mail or email your transcripts as the final step.You will now be taken to the FCRA form automatically!")}
else {app.alert ("You cannot proceed until you have saved your completed application to your hard drive. It is necesary to save the application so that it can be sent as an attachment to our office.")} ;
app.alert("You have now successfully completed your application. You should now save it to your harddrive in completion of Step 1. You must now complete Step 2 by signing and dating the form. Fill in the appropriate information at the bottom and click the Save button. After saving the FCRA form to your harddrive, you must then email both completed forms as attachments to USARR.GOV. You must then mail or email your transcripts as the final step.You will now be taken to the FCRA form automatically!");
app.alert("Lets get started");
var answer = confirm ("Are you having fun?");
if (answer)
app.alert ("Woo Hoo! So am I.")
else
app.alert ("Darn. Well, keep trying then.");
if ( confirm("You have now successfully completed your application. Have you saved your completed application to your hard drive?"))
{app.alert ("You must now complete Step 2 by signing and dating the form. Fill in the appropriate information at the bottom and click the Save button. After saving the form to your harddrive, you must then email both completed forms as attachments to uSARR.GOV. You must then mail or email your transcripts as the final step.You will now be taken to the FCRA form automatically!")}
else {app.alert ("You cannot proceed until you have saved your completed application to your hard drive. It is necesary to save the application so that it can be sent as an attachment to our office.")} ;
app.alert("You have now successfully completed your application. You should now save it to your harddrive in completion of Step 1. You must now complete Step 2 by signing and dating the form. Fill in the appropriate information at the bottom and click the Save button. After saving the FCRA form to your harddrive, you must then email both completed forms as attachments to USARR.GOV. You must then mail or email your transcripts as the final step.You will now be taken to the FCRA form automatically!");