I want to read the position of a element that is retrived with getElementById function of the document object..


I have tried to read style.top and style.left with no success.
Like this:

abc = document.getElementById("test1");
dfg = document.getElementById("test2");

dfg.innerHTML = abc.style.top;


The element is a div with a link in it..

Help please!

/Smirre