Using getXY

Clicking the button will use Dom's getXY method to get the position of the red element and pass it to the setXY method, which will move the blue element to that position.