?
Solved

vbscript: How to launch to another site using vb.

Posted on 2004-03-25
2
Medium Priority
?
204 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 80 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
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…
Suggested Courses

850 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