I found a solution for google maps marker on stack-overflow. Here is the link. Google Maps API Multiple Markers with Infowindows
google.maps.event.addListener(marker,'click', (function(marker,content,infowindow){
return function() {
infowindow.setContent(content);
infowindow.open(map,marker);
};
})(marker,content,infowindow));
My question is: What is the purpose of (marker,content,infowindow) being placed behind the javascript function? And what is it called? Thank you very much in advanced.