---
title: "中间弹出窗口参数详细说明"
author: "fengxu"
date: "2008-11-26T14:41:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2008-11-26T14:41:00Z"
id: 343520
url: "https://fengxu.iteye.com/blog/343520"
---

以前用弹出窗口的时候都是在在网上复制一下，今天才发现参数写法完全不对，一下的经过测试、可以参考使用：

 

中间弹出函数：

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状态栏