Hello, I have a textbox and I would like to find its position so that I can open another window directly underneath. If I change resolution, the textbox positon (screenx, screeny) will move.
I have tried these:
alert(document.getElementById("txtFromDate").offsetLeft) -> 0
alert(document.getElementById("txtFromDate").clientLeft) -> undefined
alert(document.getElementById("txtFromDate").scrollLeft) -> 1
I think I have the right position, but I perhaps have it in relation to the parent which is a <td>, which itself is inside a <table> which itself is inside a frame
Any ideas?
Thanks
I have tried these:
alert(document.getElementById("txtFromDate").offsetLeft) -> 0
alert(document.getElementById("txtFromDate").clientLeft) -> undefined
alert(document.getElementById("txtFromDate").scrollLeft) -> 1
I think I have the right position, but I perhaps have it in relation to the parent which is a <td>, which itself is inside a <table> which itself is inside a frame
Any ideas?
Thanks