打开弹出式html页面

open Pop up in html page

本文关键字:页面 html 弹出式      更新时间:2023-09-26

在我的html页面中,我正在使用一个函数打开弹出窗口

 window.clickOnPDpopup = function(mode,prptName,prptParameters,popup_height,popup_width) {
    var url = '';
    drillurl = PRPT_URL(mode,solution,path,prptName);
    if(prptParameters == '') {
     url = drillurl+buildParameterString(KeyArray,ValueArray,DefaultValueArray);
    } else {
     url = drillurl+prptParameters;
    }
    popupWindow = window.open(url,'popUpWindow','height='+popup_height+',width='+popup_width+',left=100,top=100,resizable=no,scrollbars=no,toolbar=yes,menubar=yes,location=yes,directories=yes,titlebar=0, status=no');
 }

window.open,我正在使用的功能,打开一个带有标题栏、菜单栏、状态栏等的新窗口,。。。

我不需要它来展示任何酒吧。我只需要它来显示div,在我的内容中,我需要显示一个关闭按钮来关闭那个窗口。

请帮助我

为什么不创建html页面,然后使用这个:

window.open("html url",null,"高度=200,宽度=400,状态=是,工具栏=否,菜单栏=否,位置=否");

然后在html上,你可以做任何你想要的设计,也可以在那里发送数据或任何