您的位置:首页 > 其它

中间弹出窗口参数详细说明

2008-11-26 14:41 274 查看
以前用弹出窗口的时候都是在在网上复制一下,今天才发现参数写法完全不对,一下的经过测试、可以参考使用:

中间弹出函数:

function popUp(whicepage,iWidth,iHeight){
var iHeight;
var iWidth;
props=window.open(whicepage,'newwindow','toolbar=no,scrollbars=no,location=no, status=no, menubar=no, resizable=no, width='+iWidth+', height='+iHeight+', left = '+(window.screen.availWidth-10-iWidth)/2+', top = '+(window.screen.availHeight-30-iHeight)/2);
}

说明:

location地址栏

resizable最大化

toolbar工具栏,scrollbars滚动条

menubar菜单栏

status状态栏
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: