Hi Filda,See this sample for an example of how to do this.
//Tell the map to "listen" for mouse movements, and run the showCoordinates function
dojo.connect(map, "onLoad", function() {
//after map loads, connect to listen to mouse move & drag events
dojo.connect(map, "onMouseMove", showCoordinates);
dojo.connect(map, "onMouseDrag", showCoordinates);
});
function showCoordinates(evt) {
//get mapPoint from event
//The map is in web mercator - modify the map point to display the results in geographic
var mp = esri.geometry.webMercatorToGeographic(evt.mapPoint);
//display mouse coordinates
dojo.byId("info").innerHTML = mp.x + ", " + mp.y;
}
mp.x and mp.y show the coordinates - you can assign these to other variables and do whatever you like with them. This example puts them into a <span> on the page.Steve