Results 1 to 5 of 5

Thread: webbrowser control?

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 1999
    Posts
    56

    Post

    In the Webbrowser control, how do I simulate a click on a URL? This doesn't work:
    WebBrowser.Navigate "http://www.website.com"
    That makes it a direct request. Say there's a link on the page, index.html, and index.html is loaded in the webbrowser. I want to simulate a click on that link so that index.html would be the referrer. How do I do that?

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    Your question is not very clear!

    Would Hyperlink.NavigateTo be of any use?

    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company



  3. #3

    Thread Starter
    Member
    Join Date
    Apr 1999
    Posts
    56

    Post

    Ok... lets say I have a page, www.mywebsite.com/index.html, with a link to http://www.download.com
    Now, if someone clicks on that link to download.com, the download.com (cnet) servers will be able to track the referrer which is my index.html. The server would be able to tell how that person got to download.com. Their server logs would show that someone came from http://www.mywebsite.com/index.html
    If I just use the Navigate method, there would not be a referrer because no link was clicked. It would be labeled a Direct Request, I think. A direct request is when someone types in the URL or when they click on a bookmark and not a link. How can I simulate a referral?

  4. #4
    Member
    Join Date
    Jun 2000
    Location
    Hong Kong
    Posts
    62

    how??

    Hi,
    I'm finding the way to simulate referral too but don't have the answer yet. I've looked at the description of Hyperlink.NavigateTo in MSDN, but can't get how to use it. what components do I need to add to the form? Thanks!
    Please Visit My WebCam!!
    http://www.hmcheung.com

  5. #5
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    if it's a simple link then you would have to send mouse events like SetCursorPos and clicking. If it's a submit button style of a link then you can use the webbrowser control and send a click on that button like so:
    Code:
    WebBrowser1.Document.Forms(0).name of button.Click
    If you need further assistance don't be afraid to ask.

    D!m


    PS. You shouldb't be cheating your way to the tope of the "topsites" lists.
    Dim

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