I've been tasked with adding print functionality to our website. Specifically, we need to have a toolbar button that can be used to print the map - just the map - none of the other stuff on the page. I'm kinda new to web programming and arcGis and Javascript, so I'm not sure what to do. I found the following sample code, but I don't know if it's still valid (sometimes stuff goes stale).
https://developers.arcgis.com/javascript/jssamples/widget_print.html
In addition, I'm not sure how to alter the code to point to our maps instead of the 'sample' map in the code. Any assistance would be appreciated.