Hello all,
I have this function below to generate a dialog when the user wants to "logout", however, it only shows one window if the user clicks OK - the client wants it to say Welcome Back if they click on the cancel button and another confirm asking Are you sure? if they click on the OK.
That way the user gets to change their mind before they are redirected to the main exit page.
Does someone know how to add this function the function I have already?
• idaryl • •
I have this function below to generate a dialog when the user wants to "logout", however, it only shows one window if the user clicks OK - the client wants it to say Welcome Back if they click on the cancel button and another confirm asking Are you sure? if they click on the OK.
That way the user gets to change their mind before they are redirected to the main exit page.
Does someone know how to add this function the function I have already?
Code:
function conFirm() {
if (confirm("Are you sure you want\nto logout of our site?\n\nWe're really sorry to\nhave you leave us. (VWI Staff)") )
{
parent.location='../index.html';
alert("GoodBye for now");
}
}
• idaryl • •
