0
有index.html
,並打開iframe與其他頁面的內容"test.html"
的頂部。 IAM閉合的IFRAME,只是在那一刻更改URL點擊鏈接後關閉iframe不可用
JS:index.html的這個iframe的背後
function confirmCloseIframe() {
doIt = confirm('wanna close Iframe?');
if (doIt) {
window.location = "/index.html"
}
}
鏈接是不是更可點擊。 你現在爲什麼?