I'm trying to use the cancel button to cancel two prompt boxes so that no action is taken and the form will be submited without interferrence from the prompts.
Here is what I got so far.
var closedcall = "Do you want to notify the user that there call has been closed"
var emailnotice = "Do you want to email the user.";
var checkbox = document.form1.call_cleared.checked
if(checkbox == true)
//Your call has been closed
else if(checkbox == false)
//Notify the user of call progress
else(email == false)
//conditional statments end
Bassically it comes down to if checkbox is check prompt and if its not prompt. Now here the part where I get stuck. If cancel is clicked do nothing.
What happens is it carries out the action anyway. Is there anyway to manipulate the cancel button so it won't open the window.
[edited by: tedster at 9:34 pm (utc) on Jan. 29, 2003]
[edit reason] stop side scroll [/edit]