ralphtrent
Programmer
Hello
I need to get the top and left cordinates of an html element, how could I go about doing that?
I have tried this
Any idea's?
I need to get the top and left cordinates of an html element, how could I go about doing that?
I have tried this
Code:
<html>
<head>
<script>
var table = document.getElementById("Table1");
windows.alert(table.left);
[green]//returns "undefined" [/green]
</script>
</head>
<body>
<table id="Table1" ><tr><td></td></tr></table>
</body>
</html>
Any idea's?