2 Replies - 12354 Views - Last Post: 16 July 2010 - 01:39 PM Rate Topic: -----

#1 the_hangman  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 13
  • View blog
  • Posts: 602
  • Joined: 18-January 06

Scroll a Web Browser Control

Posted 09 November 2006 - 12:47 PM

I have a Web Browser in my form. I am continually adding strings of html to it. I want the web browser to scroll all the way down each time data is sent to it.

I tried browser.document.window.ScrollTo(0,100)
and several other methods, but i just can't get it to scroll

WB1.DocumentText = WB1.DocumentText + "html here <br />"


that's how I'm sending the html to web dialog

suggestions?

Is This A Good Question/Topic? 0
  • +

Replies To: Scroll a Web Browser Control

#2 Guest_David Farris*


Reputation:

Re: Scroll a Web Browser Control

Posted 16 July 2010 - 10:52 AM

Use javascript commands
function jumpScroll() {
window.scroll(0,150); // horizontal and vertical scroll targets
}

Register the script and call it each time you want to scroll x or y using a button
Was This Post Helpful? 0

#3 Jack Eagles1  Icon User is offline

  • Pugnacious Penguin (inspired by no2pencil)
  • member icon

Reputation: 183
  • View blog
  • Posts: 1,152
  • Joined: 10-December 08

Re: Scroll a Web Browser Control

Posted 16 July 2010 - 01:39 PM

Or just get the HTMLElement at the bottom of the page and then scroll to that...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1