javascript设置一个页面启动时 没有工具栏 地址栏等

if(window.name == "TT"return;
else
{
    openOneWindow5Toolbar(
"Login.aspx""TT", h, w, 1024677);
    window.opener 
= null;
    self.close();
}

function openOneWindow5Toolbar(url, target, top, left, width, height)
{
    var feature 
= "location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no,directories=no";
    feature 
= feature + "top=" + top + ",left=" + left + ",width=" + width + ",height=" + height;
    window.open(url, target, feature);
}
posted @ 2009-12-16 19:13  XueM  Views(632)  Comments(0Edit  收藏  举报