I am trying to add an email link into a popup. The email link will send feature data about the point selected when someone clicks it. It is working but, every time a new point is click a new link is added to the bottom of the popup. How do I overwrite the link each time a point is clicked? here is the code I have for the link.//*** Email Link ***// dojo.connect(map, 'executeIdentifyTask', function (result) { // Add a link into the InfoWindow Actions panel var emailLink = dojo.create("a", { "class": "action email", "innerHTML": "Email Comments", "href": "javascript:void(0);" }, dojo.query(".actionList", map.infoWindow.domNode)[0]); console.log(emailLink); // Register a function to be called when the user clicks on // the above link dojo.connect(emailLink, "onclick", function (evt) { var feature = map.infoWindow.getSelectedFeature(); var url = window.location; var emailLink = "mailto:emailaddress@email.com?subject=Comments:%20" + feature.attributes.ID + "&body=Comments on Landmark:%20ID:%20"+ feature.attributes.ID +" @ " + window.location; window.location.href = emailLink; }); });Thanks