I'm learning html/JavaScript code from ArcGIS API Sandbox. (http://help.arcgis.com/en/webapi/javascript/arcgis../sandbox/sandbox.html?sample=map_webmap) The code in the sandbox works fine and creates a map in the 'results pane'. However, If I download and save the code from the sandbox to my desktop in html format, and then I open the html it won't generate any map.
I've tried changing parts of the code (like some parameters in the tags, even the '<'!DOCTYPE> line) but I still can make it work. Any advice on how to make that code run?