Popup using VBScript


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Popup using VBScript

  1. #1
    venkatesh Guest

    Popup using VBScript


    Hi all

    How do you implement a popup window using vbscript ?
    I want to show a "Are you sure you want to delete?"
    popup and only delete if the user clicks on Yes



  2. #2
    Russell Jones Guest

    Re: Popup using VBScript

    'Const vbYesNo=4
    'Const vbYes = 6
    if msgBox("Are you sure you want to Delete?",vbYesNo, "Confirm Delete") =
    vbYes then
    ' delete
    else
    ' don't delete
    end if

    The constants work with VBScript version 5x, but were not defined in earlier
    versions, (that's why they're commented out in the example) so you might
    want to use variables or define constants with a different name so it will
    work in all versions.

    Russell Jones
    Sr. Web Development Editor
    DevX.com

    "venkatesh" <vaiyar@hotmail.com> wrote in message
    news:3a6f8047@news.devx.com...
    >
    > Hi all
    >
    > How do you implement a popup window using vbscript ?
    > I want to show a "Are you sure you want to delete?"
    > popup and only delete if the user clicks on Yes
    >
    >




  3. #3
    Colin Guest

    Re: Popup using VBScript


    <script language=VBScript>

    msgbox "Are you sure you want to delete"

    If yes Then
    allalala
    Else
    lalala
    End If

    </script>


    "venkatesh" <vaiyar@hotmail.com> wrote:
    >
    >Hi all
    >
    >How do you implement a popup window using vbscript ?
    >I want to show a "Are you sure you want to delete?"
    >popup and only delete if the user clicks on Yes
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center