WebBrowser Scrollbar Document Positioning

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using the AxWebBrowser component in my C# .NET application and am
navigating to an outside .HTML file periodically. Whenever I refresh the
WebBrowser with the updated HTML file by using Navigate method, it displays
it from the top. How do I automatically scroll the view down to the last
line of the document?

Thanks!
 
You can do this with some javascript. If i recall correctly, it's
something like "self.scrollTo(x, y);". You could either embed this in
your HTML, or use the AxWebBrowser to "execute" this javascript.
 
I was assuming that you can manipulate the Document through C# programming
but, not knowing much of javascript, didn't realize about that. I'm guessing
that javascripting might be the best solution to document manipulations like
this. Thanks Wilco!
 
Back
Top