Results 1 to 2 of 2

Thread: DHTML question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    I have 1 text box and 1 command button

    now how do I make it so that when someone clicks on the button, it verifiyes if the textbox says "Dimava", and if it does then I want it to goto http://members.aol.com/dimava/
    how do I do that

    incase you didn't understand what I mean, this is what the code would look like in regularr vb:

    Code:
    Private Sub Command1_click()
    if text1.text = "Dimava" then
    Navigate.to "http://members.aol.com/dimava/" 'not sure if this line will work
    end if
    End Sub

    thanks in advance


    BTW I opened VB 6 enterprise, then I picked DHTML project from the list
    NXSupport - Your one-stop source for computer help

  2. #2
    Guest
    Add the following:

    Code:
    Sub NavigateURL(varURL as String)
        Dim x As New InternetExplorer
        x.Navigate2 (varURL)
    End Sub
    And you can use:

    Code:
    If Text1.Text = "Dimava, reasking already asked questions, and tried tricking himself into a guru." Then NavigateURL("http://www.aol.com/dimava/not/a/guru")
    'Also, Dennis Wrenn is right.

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