title: Getting country_code from response in geocoder
body: <p>Reading response results from a geocoder service, I get the country code not in the same place. How do I get the country code from the DOM using simple JavaScript code and not using an external JSON library?</p>
  
  <pre><code>var latlng = new google.maps.LatLng(iplat, iplong);
      if (geocoder) {
          geocoder.geocode({'latLng': latlng},function(results, status) {
          if (status == google.maps.GeocoderStatus.OK) {
              if (results[1]) {
                  country_code=results[1].address_components[0].short_name;
              }
          } 
          else 
          {
            alert("Geocoder failed due to: " + status);
          }
      });
  }
  </code></pre>