paulafernandes
12-16-2002, 11:09 AM
Hello!
I have this question that I'm sure is very simple and basic, but I'm not understanding...
I have this piece of code:
function linkform_rem() {
if (confirm("Are you sure?"))
{this.location = "dg_rem_val.asp";}
else { this.location = "dg_rem_cons.asp"; }
}
When I press OK, it goes to "dg_rem_val.asp", but when I press CANCEL it goes to "dg_rem_val.asp" too! I can't go to "dg_rem_cons.asp".
Why??? What am I doing wrong?
Thank's...
Paula
I have this question that I'm sure is very simple and basic, but I'm not understanding...
I have this piece of code:
function linkform_rem() {
if (confirm("Are you sure?"))
{this.location = "dg_rem_val.asp";}
else { this.location = "dg_rem_cons.asp"; }
}
When I press OK, it goes to "dg_rem_val.asp", but when I press CANCEL it goes to "dg_rem_val.asp" too! I can't go to "dg_rem_cons.asp".
Why??? What am I doing wrong?
Thank's...
Paula