Navigating to HTML document anchors using the WebBrowser control 
Author Message
 Navigating to HTML document anchors using the WebBrowser control

I know how to navigate to an HTML document with the WebBrowser control.
For example:

        WebBrowser1.Navigate " http://www.*-*-*.com/ ;

The browser control will then load the HTML document, displaying it from
the top.

However, if you wanted to go to a specific anchor (or bookmark) in that
document, how do you do that?  In HTML, if you had an anchor named "info",
the URL to that anchor would be:

" http://www.*-*-*.com/ #info"

But if you try the #(anchor) syntax with the WebBrowser control's Navigate
method, an automation error occurs.  For example:

        WebBrowser1.Navigate " http://www.*-*-*.com/ #info"

results in:

        Run-time error '-2147023673 (800704c7)':
        Automation error

So, how do you do it?
Do you have to do something with the Document object?

Also: there seems to be no online help for this control.  Does anyone know
where it can be found?

Thanks
-pete



Sun, 08 Apr 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. WebBrowser control browsing to an Anchor in an HTML doc

2. Referrer Property of Document Object not updated using Navigate method of webbrowser controller

3. WebBrowser not jumping to anchor in local document

4. WebBrowser control Navigate without using cache

5. Referrer data not being passed when using the Navigate method of the WebBrowser Control

6. Referrer property not being set properly when using the Navigate method of the WebBrowser control

7. Launching an anchored HTML document with Internet Explorer

8. Document's HTML source with WebBrowser control?

9. Document's HTML source with WebBrowser control?

10. vb6 webbrowser control and html document

11. Dynamically edit HTML using Webbrowser Control help

12. getting html source only, using webbrowser control

 

 
Powered by phpBB® Forum Software