Results 1 to 3 of 3

Thread: WebBrowser doc and InStr

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2001
    Posts
    377

    WebBrowser doc and InStr

    hi can someone help me out with this, i'm loading a webpage with the webbrowser control and then checking the HTML source for the work "server2update" if present some other coding is processed. My problem is that it's not detecting 'server2update'

    VB Code:
    1. Dim sDoc As String
    2.       sDoc = WebBrowser1.Document
    3.                                                                                      
    4. If InStr(sDoc, "server2update") > 0 Then
    5. ... 'looking to see if server2update is present in the HTML coding
    6. ...

  2. #2
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: WebBrowser doc and InStr

    with the webbrowser HTML (which I assume is what you want) you would type webbrowser1.document.body.innerhtml :-)

  3. #3
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: WebBrowser doc and InStr

    checkout the codebank submission:

    http://vbforums.com/showthread.php?t=340644
    CS

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