3
我有一些問題了解如何在打開它們後引用新的瀏覽器窗口。舉個例子,如果我創建了3樓新的窗口,從一主一(index.html的):javascript打開窗口引用
var one = window.open('one.html', 'one',"top=10,left=10,width=100,height=100,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
var two = window.open('two.html', 'two',"top=100,left=10,width=100,height=100,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
var three = window.open('three.html', 'three',"top=200,left=10,width=100,height=100,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
two.focus();
我怎麼能編程專注於(或只是參考)瀏覽器的「三包」,如果瀏覽器「二」是目前焦點?
用於 「window.parent.childWindows.push(窗口);」即使我已經在我的父窗口中聲明瞭childWindows數組,我仍然收到「無法調用未定義的方法」 – minimalpop 2010-03-22 16:58:32
Try window.opener.childWindows – 2010-03-22 17:30:52
經過測試,它可以正常工作。 – 2010-03-22 17:56:27