title: calling javascript in infoWindow Google Maps
body: <p>i am trying to call javascript inside the google maps infoWindow() but no luck. anyone know how to solved this issue? my coding as below:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no" /&gt;
  &lt;style type="text/css"&gt;
      html { height: 100% }
      body { height: 100%; margin: 0px; padding: 0px }
      #map_canvas { height: 100% }
  &lt;/style&gt;
  &lt;script type="text/javascript"src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      function initialize() {
      var image = 'image.png';
      var myOptions = {
          zoom: 15,
          center: new google.maps.LatLng(3.101669,101.635793),
          mapTypeId: google.maps.MapTypeId.ROADMAP
      }
      var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
      var myHtml = "&lt;script type='text/javascript'&gt;alert('test');&lt;\/script&gt;";
      var infowindow = new google.maps.InfoWindow({content: myHtml});
      var marker = new google.maps.Marker({
          position: new google.maps.LatLng(3.09667,101.635793),
          map: map,
          title:"Hey, I'm here!",
          &lt;!--icon: image--&gt;});
      google.maps.event.addListener(marker, 'click', function() {
      infowindow.open(map,marker);});
      infowindow.open(map,marker);
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="initialize()"&gt;
  &lt;div id="map_canvas" style="width: 640px; height: 480px; margin:1.5em 13.6em 1.5em 2em;"&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>