JavaScript方法(打开新页面)

function OpenWin(theUrl)
{
window.open(theUrl,'','menubar=no, z-look=yes, scrollbars=no, toolbar=no, status=yes, resizable=no, width=400, height=300');
}

function OpenWin(theUrl,width,heigh)
{
window.open(theUrl,'','menubar=no, z-look=yes, scrollbars=yes, toolbar=no, status=yes, resizable=no, width='+ width +', height='+heigh);
}

调用:javascript:OpenWin('页面',600,800);

 

posted @ 2008-07-14 18:59  洗碗心得  阅读(766)  评论(0编辑  收藏  举报