Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    Hong Kong
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Creating interactive boxes

    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
    Attached Files Attached Files


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •