1
function openindex()
{
OpenWindow=window.open("", "newwin", "height=768, width=1024,toolbar=no,scrollbars=no,menubar=no, location=no");
OpenWindow.alert("hi");
}
openindex();
因此,這失敗了,窗口創建空白或加載網頁,沒有警報。當然這可以在html文檔中使用,但作爲擴展名失敗,我不知道爲什麼。鉻擴展打開JavaScript的彈出窗口,然後警報在該窗口失敗
btw即時通訊嘗試在javascript中執行此操作,因爲在使用greasemonkey的firefox中需要使用相同的腳本。 – David 2011-01-13 21:04:04