How can I calculate the position of a DOM element from Google Chrome content scripts.
- by Ashish
Hi, I am writing a chrome extension and from the content script I want to calculate the absolute position of a DOM element. But from within content script, if i try to access offsetHeight, offsetWidth, offsetTop, offsetParent, etc, I get null. I guess content scripts don't have access to those DOM properties.
Is there a way/workaround, i can find those properties?