How to Override target="_blank" in the kml popup <p>I'm loading a kml in a map from google using a code like this:</p> <pre class="lang-js prettyprint-override"><code>var myOptions = { mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map_canvas'), myOptions); var kmlLayer = new google.maps.KmlLayer('https://maps.google.com/maps/ms?authuser=0&amp;vps=2&amp;ie=UTF8&amp;msa=0&amp;output=kml&amp;msid=209879288832578501414.0004c52d678cf88f70685'); kmlLayer.setMap(map); </code></pre> <p>The problem is the link into the popup, <a href="https://developers.google.com/kml/documentation/kmlreference#description" rel="nofollow">kml adds</a> <code>target="_blank"</code> and I don't want it.</p> <p>How I can remove it using javascript? I found <a href="http://stackoverflow.com/a/1185271/842697">this answer</a> but it doesn't work in the API 3. I prefer not to use jQuery.</p>