Results 1 to 21 of 21

Thread: [Resolved] Run java script Ok/Cancel Message Box from command button

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Resolved [Resolved] Run java script Ok/Cancel Message Box from command button

    Lets say I have some java script on my ASP page.
    VB Code:
    1. <input type="submit" name="BtnDelete" value="Delete" id="BtnDelete"
    2.      onclick="return confirm('Are you sure you want to delete?');" />
    Is there a way that I can make this java code run from a VB command button?

    I would also need to know if the user clicked the ok button, or the cancel button.

    If so, what would be the code that would do that?

    Thanks
    Last edited by indydavid32; Oct 20th, 2004 at 07:58 AM.
    David Wilhelm

Posting Permissions

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



Click Here to Expand Forum to Full Width