Jump to content

Scrolling IE object into view


dusty071
 Share

Recommended Posts

Hi, i ran into a problem where the object that im Mouseclicking in IE is sometimes out of view, further down the page or so. Before you tell me that i should use _IE functions to click that object please note that i tried that and the page doesnt allow it, it needs to be mouseclicked.

So im looking for a way to scroll that object into view before clicking it. I was thinking of using _IEPropertyGet($oDiv, "screeny") to get the position of the object, then somehow scrolling with $oIE.document.parentwindow.scroll(0,0) so that it will be in the "middle" of the page, lets say y>100 and y<850 for me. But im not sure how to set up the scroll relative to the object.

Help much appreciated. Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...