Click to See Complete Forum and Search --> : alert window
glotsa
06-29-2003, 08:40 PM
The senerio is "If user has not save the form but click the link to back to the main page, then a window will pop for asking the user whether he likes to save the form or not."
How can i do this? I remember that there is a method to do this like (alert or prompt), right?
glotsa
06-29-2003, 10:59 PM
Now, i know that i can use "comfirm("Do you want to save the work?");"
then a window will popup for user to choose "OK" or "Cancel"
how to know that user has clicked the "OK" button and the "Canel" button?
if (clicked "OK"){
//back to main page with saving
}else (clicked "Cancel"){
//back to main page without saving
}
How to code in the if clause??
Pls help:)
glotsa
06-29-2003, 11:09 PM
Oh! i can solve the problem. :)
sorry for disturbance.