-
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?
-
Your question is not very clear!
Would Hyperlink.NavigateTo be of any use?
------------------
Mark Sreeves
Analyst Programmer
[email protected]
A BMW Group Company
-
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?
-
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!
-
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. :)