...

View Full Version : Creating interactive boxes



victoria_1018
08-22-2002, 11:05 AM
Hi all,
I had a problem in creating an interactive box.
Below is the codes I used for the interactive box.

<Script>
var stay=confirm("Delete Report?? Please click ok to proceed or cancal to go back to the main menu!")
if (stay)
window.location="DeleteReport2.asp"
else
window.location="main.asp"

</Script>

The program works without any bug. Although the program take me to the main page after I had click cancal, but the selected report is deleted at the same time.
What can I do to ensure the program only delete the report when I click ok, and take me to the main menu without deleting the report when I click cancal?
Thanks

Regards
Victotia



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum