Thanks for the link. Adding here a link about getBoundingClientRect():
http://msdn.microsoft.com/en-us/library/hh781509%28v=vs.85%29.aspx

This solution is good for me.