Tag Archives: relative coordinates

Getting Coordinates Relative To The Viewport In JavaScript

When you are doing certain calculations, sometimes it’s nice to work with DOM elements using one coordinate system. Those familiar with Adobe Flash can think of this as the (global) Stage coordinates of a Display object. Anyway, one of the … Continue reading

Posted in JavaScript | Tagged , , , , , , | Leave a comment