子窗口不会出现在加载(onload)父窗口上

时间:2013-12-02 17:11:23

标签: javascript

在一个带有php代码的html文件中(intereuropeco1.php)我写道: prepUnuaLabrp(lg)函数由包含:

加载  

在与intereuropeco1.php位于同一目录的IMW.js中,我写道:

function prepUnuaLabrp (lg)
if (lg == "esp") {
    enh='text1';
} else {
    enh='text2';
}
testpagho = window.open ("" , "GT", specif) ;
tekstF = '<HTML><BODY>' + enh + '</BODY></HTML>';
testpagho.document.write(tekstF);
testpagho.document.close();
testpagho.focus();
}

testpagho 不会出现。 (特定定义为 specific = specificB +“,left =”+ mldkr +“,width =”+ largh +“,scrollbars = 0”with with specifB =“toolbar = 0,location = 0,directories = 0,menubar = 0,status = 0,resizable,height =”+ alto +',top =“+ supro; 并且所有变量mldkr,largh,alto和supro都已正确初始化。)

0 个答案:

没有答案