有一個小的要求,有一個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