Solved

vbscript: How to launch to another site using vb.

Posted on 2004-03-25
2
196 Views
Last Modified: 2010-04-06
Hello, I have the following code:

<script language="vbscript">
msg = "Bla Bla Bla:" & vbCrlf & vbCrlf & _
      "bla bla bla" & vbcrlf & vbcrlf & _
      "If so, please select YES, otherwise, choose NO"
     
msgTitle = "Question"
If MsgBox(msg, vbYesNo, msgTitle) = vbYes Then
    <this is where I want to redirect to another page>
Else
End If
</script>

If the user selects yes, i want to direct the user to a diffrent page.  Thanks for your help.
0
Comment
Question by:clear100-com
2 Comments
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 20 total points
ID: 10680735
<script language="vbscript">
msg = "Bla Bla Bla:" & vbCrlf & vbCrlf & _
      "bla bla bla" & vbcrlf & vbcrlf & _
      "If so, please select YES, otherwise, choose NO"
     
msgTitle = "Question"
If MsgBox(msg, vbYesNo, msgTitle) = vbYes Then
   navigate("http://www.google.com")
Else
End If
</script>

venkat
0
 

Author Comment

by:clear100-com
ID: 10681095
Perfect!  Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now