svar sPrompt = "Click to OK to go to this web site, or Cancel to continue.";
if(confirm(sPrompt )){
//to open in same window
window.navigate(sNewurl);
//to open in new window
window.open(sNewurl);
} else {
//do something else for cancel
}
-----Original Message-----
From: admin@n... [mailto:admin@n...]
Sent: 27 July 2001 05:40
To: javascript
Subject: [javascript] Using if(confirm
I want to use the: if(confirm("Click to OK to go to this web site, or
Cancel to continue.")
But at this point I'm don't know how to get the script to transport the
user to another URL or better-yet to open the URL on top of the original
window when he/she clicks OK.
Please help...