Javascript Reference
Categories: IMG

javascript IMG x, y

@March 15, 2008, 1:22 a.m.
x, yFirefox/Netscape/NN 4 IE n/a Chrome/Safari/DOM n/a  

Read-only  

Provide the horizontal and vertical pixel coordinates of the top-left corner of the image relative to the page. These are Navigator-only properties, corresponding to the offsetLeft and offsetTop properties of Internet Explorer.

 
Example
 
var imageFromTop = document.logoImg.y;
 
Value

Integer.

 
Default

None.


Powered by Linode.