I have a map service with an attribute that has a URL in it. I simply want a pan/zoom javascript map that navigates to the URL when clicked on. Like an old school image map. Just like the functionality with the Hyperlink Tool in ArcMap.
You could create an infoTemplate or Popup with the link in an anchor tag. You would use an identify task, query task, or feature layer to make it visible
Or you could set up an onClick event on the map that queries the feature with the [anchor_cod] as the outfield. When you get the results, run window.open() on that results attribute.