簡體   English   中英

打開彈出html頁面

[英]open Pop up in html page

在我的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,“ height = 200,width = 400,status = yes,toolbar = no,menubar = no,location = no”);

然后在該html上進行所需的任何設計,並在那里發送數據

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM