简体   繁体   English

打开弹出html页面

[英]open Pop up in html page

In my html page i am using a function to open a pop up window 在我的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 , the function i am using, opens a new window with a title bar, menu bar, status bar,... 我正在使用的功能window.open打开一个带有标题栏,菜单栏,状态栏,...的新窗口。

I dont need it to show any bars. 我不需要它来显示任何酒吧。 I just need it to show a div and inside my content, i needlose show a close button to close that window. 我只需要它来显示div然后在我的内容中显示一个关闭按钮即可关闭该窗口。

Please help me 请帮我

why don't you just create html page then user this: 为什么不创建HTML页面,然后使用它:

window.open("html url",null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no"); window.open(“ html url”,null,“ height = 200,width = 400,status = yes,toolbar = no,menubar = no,location = no”);

then on that html you do whatever design you want and also send data there or anything 然后在该html上进行所需的任何设计,并在那里发送数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM