[Project_owners] How to obtain the scrollbar positions of a webpage?

Christopher Ottley xknight at users.sourceforge.net
Sun Aug 1 10:09:43 EDT 2004


Jaap Haitsma wrote:

> Anybody knows how I should get the scrollbar position of the mainwindow?

If you have the browser object for the tab you want to modify, you can 
save and set
   aBrowser.contentWindow.scrollX
and
   aBrowser.contentWindow.scrollY
where aBrowser is the variable holding your browser object.

Chris.


More information about the Project_owners mailing list