Hi,
I am using a webbrowser control to navigate to any web page on internet. When the navigation is complete(DocumentComplete is fired) i want to calculate the top, left, width and height attribute of all image("<Img>") elements and store those values.
I am trying to use the getBoundingRect and getClientRect DOM/mshtml APIs but these APIs are not giving the correct locations for any frame based sites. For web pages without any frames, these are working fine. Surprisingly, these API's work fine if we try to get the location/size attributes of anchors (even for the frame based sites).
It will be great if someone can give me pointers regarding what API to use in the above case.
Thanks,
Yash