use ajax object like
xmlhttp.open("Get","https://www.google.com/maps/preview?q="+placename,true)
xmlhttp.send(null)
xmlhttp.onreadystatechange = function () {
if (xmlhttp1.readyState == 4 ||xmlhttp.Status="ok") {
var x = xmlhttp.responseText;
document.getElementById("iframe").innerHTML=x;
}
}
No need of api and all other details related to javascript