Make a link in google map kml file open in the same window


/ Published in: JavaScript
Save to your folder(s)

Add this to the javascript that builds the map


Copy this code and paste it in your HTML
  1. GEvent.addListener(map,"infowindowprepareopen", function(iwtabs) {
  2. iwtabs[0].contentElem.innerHTML = iwtabs[0].contentElem.innerHTML.replace("_blank", "_parent");
  3. });

Report this snippet


Comments


You need to login to view comments.