title: a href in a infowindow maps api v3
body: <p>It's possible to call <em>JavaScript</em> from link in a <em>infowindow</em>? Know it's possible but in my case I can't figure how to declare <em>i</em> ? </p>
  
  <p>i is a polygon number, and it mean to call <em>function kmlShowPlacemark(i)</em></p>
  
  <p>Here's my example:</p>
  
  <pre><code>function clickablePolygon(placemark, info, i) {
       var name = geoXmlDoc.placemarks[i].name;
       var numMkrs = geoXmlDoc.placemarks[i].numMarkers;
       google.maps.event.addListener(placemark.polygon, "click", function(e) {
          if (e &amp;&amp; e.latLng) {
               infowindow.setPosition(e.latLng);
          } else {
               infowindow.setPosition(placemark.polygon.bounds.getCenter());
          }
      infowindow.setContent('&lt;div class="geoxml3_infowindow"&gt;&lt;h3&gt;' + placemark.name +
             '&lt;/h3&gt;&lt;div&gt;' + info + '&lt;br&gt;&lt;a href="javascript:kmlShowPlacemark('+ i + ');"&gt;Show place&lt;/a&gt;&lt;/div&gt;');
          infowindow.open(map); 
       });
  }
  </code></pre>