I was wondering if its possible to get the absolute position of specific HTML element I have loaded in webbrowser control with C#.
I tried almost all of the options that
Not sure why but offsetparent is not allways returned (case of IE11, map object) I had to add parentElement in the loop when parentOffset is not provided
While parent IsNot Nothing
y += parent.offsetTop
x += parent.offsetLeft
If parent.offsetParent IsNot Nothing Then
parent = parent.offsetParent
Else
parent = parent.parentElement
End If
End While
And you need to add IE browser position, the menu space and borders ...