Inside the google maps infowindow object I have called the showHotel() function but it did not gets called. When I just write alerert('') is works but my own defined function did not work.
function showHotel() {
alert('Wapal po');
}
var infowindow = new google.maps.InfoWindow({
content: '<a href="#" onclick="showHotel()">Show Tasweer</a>'
});