I have a site where I want to open a link in a new window instead of showing 
an infowindow when a marker is clicked. The code used shown below works 
perfectly in Firefox/Chrome, but in Internet Explorer the new window is 
opened behind the original window. It looks like something happens on the 
Maps page that causes it to be moved to the foreground hiding the new 
window.

Is there a way to avoid this? Or maybe a better way to implement it?

----------------------------------------------------------------
Webpage:
http://kamera.kartet.no/interactive
----------------------------------------------------------------

// A function to create the marker and set up the event window
function createMarker(point,name,url,icon,id) {
  var marker = new google.maps.Marker({
    position: point,
    map: googleMap,
    title: name,
    zIndex: zIndexMarker
  });
  google.maps.event.addListener(marker, "click", function() {
    window.open(url);
  });
  zIndexMarker = zIndexMarker + 1;
  return marker;
}

----------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to