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