I would like to dynamically create a "google maps" link in javascript and than set it as src for my iframe, but I don't know if it is not possible with google maps, because this doesn't work:
document.getElementById('map_canvas').src='http://maps.google.com/maps/ms?ie=UTF8&msa=0&msid=209246852521822593612.0004feda304ac527ea40a&output=embed';
although, for example this works:
document.getElementById('map_canvas').src='http://www.cnn.com';
This is my iframe:
<iframe id="map_canvas" name="map_canvas" width="100%" height="600px"
frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
src="">
</iframe>
Could you explain me, how is it possible to dynamically generate and display a google maps link in iframe ?
Thank you for help!