Results 1 to 2 of 2

Thread: alerts

  1. #1
    Join Date
    Dec 1969

    Default alerts

    How can I alert a user when pressing a boton with a question, and also with the "OK" or "CANCEL" in vbScript. So far I have the Following, but all I get is the message with the ok button, I also want a cancel in case the user wants to cancel..<BR><BR>&#060;script language = "vbScript"&#062;<BR> Sub btnOk_OnClick<BR> alert "Are you sure?"<BR> End Sub<BR>&#060;/script&#062;

  2. #2
    Join Date
    Dec 1969

    Default confirm, instead of alert...

    ...that&#039;s actually a JS call, but since it&#039;s implemented by the browser&#039;s window object it&#039;s also accessible to VBS.<BR><BR>But the better alternative is MSGBOX, which provides *tons* more flexibility. Look it up in the VB or VBScript docs.<BR><BR>

Posting Permissions

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