<body> <div id="doc"> <h1>DOM Example: getXY</h1> <p>This example demonstrates how to use Dom.getXY to get an elements position.</p> <p>Click anywhere and the grey element will move to the red element.</p> <div id="test"></div> <div id="end"></div> </div>