JavaScript 关闭窗口 无提示
我现在想要做成的是:点击一个按钮,进入等待界面,3秒后,自动跳到另一个界面,但是这个等待界面要关闭。我的代码是:
function init()
{
setTimeout("toSomePageFunction(我的.htm')",3000);
}
function toSomePageFunction(pageName)
{
w = window.open (pageName, 'newwindow', "height = 400, width=600, top = 100,left = 200,toolbar= no,menubar=no, scrollbars=no, resizable=no, location=no, status=no");
window.opener = null;
window.self.close();
//shutwin();
}
但是一直都有关闭的确认框,试了好多网上的方法了,都不好用。我的系统是Vista,不知道这个确认框是否可以去掉?谢谢!!