有一个小的要求,有一个iframe,然后是3个按钮。 一旦我们点击button1,url应该显示在iframe中,与第二个按钮相同。 这是我的代码,请你帮忙。使用javascript在Iframe中显示的网址
function testCoverage(){
window.frames['idIfrm'].document.location.href = 'http://google.com';
}
function testCoverage1(){
window.frames['idIfrm'].document.location.href = 'http://yahoo.com';
}
这里是JsFiddle
其实在这里我想显示的谷歌地图。 – Rajasekhar
比使用[google map api](https://developers.google.com/maps/)! – epascarello