I have a table with an element (say, an image) inside one of the cells. What I want to do is align another image (which is outside of the table and positioned absolutely) so that it has the same top-left corner. To do that, I thought I'd try:
obj1.style.top=document.defaultView.getComputedStyle(target1, null).top +"px";
obj1.style.left=document.defaultView.getComputedStyle(target1, null).left+"px";
but that didn't quite do the trick. I've also tried offsetTop and offsetLeft, but those seem to be somehow relative to the parents and such and I don't want to do (nor can I figure out) recursion for that. Any ideas?