javascript function call issue
<p>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.</p>

<pre><code>   function showHotel(){
       alert('Wapal po');
   }
   var infowindow = new google.maps.InfoWindow({
          content: '&lt;a href="#" onclick="showHotel()"&gt;Show Tasweer&lt;/a&gt;'
   });
</code></pre>
