[Javascript] Getting the X,Y coordinates of an image

DEV dev at qroute.net
Wed Apr 9 15:03:38 CDT 2003


If I have an image like this
<img id=image1 src='anImage.gif'>

How do I get the top / left properties of that image relative to the browser
?

is there something like this such as
alert(document.all.image1.top.value) ???














More information about the Javascript mailing list