I'm not sure about this properties, because I can't find them on w3c. Are they real position in browser?
Asked
Active
Viewed 177 times
2 Answers
0
I believe that object.x and object.y are the positions of the element in the browser, however they're not always supported (by browser and also it may not always be relevant for an element)
An approach for identifying position: Retrieve the position (X,Y) of an HTML element
See javascript reference: http://www.w3schools.com/jsref/dom_obj_all.asp for all the positioning properties available
Documentation that x and y can provide position information: http://www.howtocreate.co.uk/tutorials/javascript/javascriptobject