I’m not sure about this properties, because I can’t find them on w3c. Are they real position in browser?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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